Class: Symbol
Instance Method Summary collapse
-
#to_proc ⇒ Object
Does exactly what the activesupport version does, with pretty much the same code.
Instance Method Details
#to_proc ⇒ Object
Does exactly what the activesupport version does, with pretty much the same code.
4 5 6 |
# File 'lib/darkext/symbol.rb', line 4 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end |