Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#to_procObject



2
3
4
5
6
# File 'lib/core_ext/symbol.rb', line 2

def to_proc
  Proc.new do |target|
    target.send(self)
  end
end