Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



6
7
8
# File 'lib/referential/core_ext/symbol.rb', line 6

def <<(other)
  to_proc << Proc.new(&other)
end

#>>(other) ⇒ Object



10
11
12
# File 'lib/referential/core_ext/symbol.rb', line 10

def >>(other)
  to_proc >> Proc.new(&other)
end

#call(arg = nil) ⇒ Object



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

def call(arg = nil)
  Proc.new(&other).call(arg)
end