method
to_proc
v2_6_3 -
Show latest stable
- Class:
Symbol
to_proc()public
Returns a Proc object which responds to the given method by sym.
(1..3).collect(&:to_s) #=> ["1", "2", "3"]
to_proc()Returns a Proc object which responds to the given method by sym.
(1..3).collect(&:to_s) #=> ["1", "2", "3"]