Lisp-style "quoting" in ruby? - A question from adrusi - Forrst

Ruby doesn’t support that particular technique because it’s object-oriented more than it’s functional:

 
[1, 2, 3].each{|n| puts n}

However, in 1.9.2, you can snatch a Method from an object using the Object#method method:

 
method(:print) #=> #
5.method(:+).call(8) #=> 13

And you can even turn a Method into a Proc or syntactic block:

 
"big balls".method(:split).to_proc #=> #
[1, 2, 3].each(&method(:puts))