Sha256: 95b64e2efbba053e2b0ce4f321134bfd7fd64ed187c78178bf065fd483b937cd
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
module Alf module Operator # # Specialization of Operator for operators that work on a binary input # module Binary include Operator # # Sets the operator input # def pipe(input, env = environment) self.environment = env self.datasets = input self end protected # Returns the left operand def left Iterator.coerce(datasets.first, environment) end # Returns the right operand def right Iterator.coerce(datasets.last, environment) end end # module Binary end # module Operator end # module Alf
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | lib/alf/operator/binary.rb |
alf-0.10.0 | lib/alf/operator/binary.rb |