RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Duck-typing with #to_proc

One of the greatest Ruby mysteries for me has always been the idiomatic Symbol#to_proc which is usually used to cast a symbol to a block usually passed to some enumerator. In this post we explore what other powerful uses and potential #to_proc has

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in