Method.to_proc

Most people don’t know about ruby’s builtin Method.to_proc. Sure, we all know Rails’ symbol.to_proc:

1
people.collect(&:firstname)

But Method.to_proc is also quite handy. Let me show you.

Pretty awesome right?

Comments