Class: Symbol
Instance Method Summary collapse
-
#to_proc ⇒ Object
Standard in ruby 1.8.7+.
Instance Method Details
#to_proc ⇒ Object
Standard in ruby 1.8.7+. See official documentation
3 4 5 |
# File 'lib/introspection/core_ext/symbol.rb', line 3 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end |