class LiberMeliorationum::Pipe::Proclist
Proxy object for a list of procs
Public Class Methods
<<(arg)
click to toggle source
# File lib/liber_meliorationum.rb, line 203 def self.<<(arg) new(arg) end
new(*args)
click to toggle source
# File lib/liber_meliorationum.rb, line 183 def initialize(*args) @procs = args end
Public Instance Methods
+(other)
click to toggle source
# File lib/liber_meliorationum.rb, line 187 def +(other) self.class.new(self, other) end
<<(other)
click to toggle source
# File lib/liber_meliorationum.rb, line 191 def <<(other) @procs << other self end
call(*args)
click to toggle source
# File lib/liber_meliorationum.rb, line 196 def call(*args) @procs.each do |procedure| args = [procedure.call(*args)] end args.first end