Method: Symbol#to_proc
- Defined in:
- string.c
#to_proc ⇒ Object
Returns a Proc object which responds to the given method by sym.
(1..3).collect(&:to_s) #=> ["1", "2", "3"]
11136 11137 11138 11139 |
# File 'string.c', line 11136 VALUE rb_sym_to_proc(VALUE sym) { } |