class Ordinary::Units

Public Instance Methods

inspect() click to toggle source
# File lib/ordinary/unit.rb, line 81
def inspect
  "#<#{instance_id} #{owner} [#{map(&:inspect) * ', '}]>"
end
to_proc() click to toggle source
# File lib/ordinary/unit.rb, line 76
def to_proc
  processes = map(&:to_proc)
  lambda { |value| processes.reduce(value) { |v, p| p.call(v) } }
end
with(*arguments) click to toggle source
# File lib/ordinary/unit.rb, line 72
def with(*arguments)
  self.class.new(map { |unit| unit.with(*arguments) })
end