Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#to_procObject

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