Class: Symbol

Inherits:
Object show all
Defined in:
lib/introspection/core_ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#to_procObject

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