class Symbol
Public Instance Methods
to_proc()
click to toggle source
Standard in ruby 1.8.7+. See official documentation
# File lib/introspection/core_ext/symbol.rb, line 3 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end