Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/instantiator/core_ext/symbol.rb
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/instantiator/core_ext/symbol.rb', line 3 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end |