Module: ProcOverrides

Included in:
Proc
Defined in:
lib/pipeline_symbols/core_ext/proc.rb

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



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

def <<(other)
  return super if other.respond_to?(:call)

  self << other.to_proc
end

#>>(other) ⇒ Object



8
9
10
11
12
# File 'lib/pipeline_symbols/core_ext/proc.rb', line 8

def >>(other)
  return super if other.respond_to?(:call)

  self >> other.to_proc
end