Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



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

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

#>>(other) ⇒ Object



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

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