Sha256: e1bcf9ed1ce6d121714740325d5cb834374a4083a745b2dcc4dadd6c8651a5ec

Contents?: true

Size: 390 Bytes

Versions: 5

Compression:

Stored size: 390 Bytes

Contents

module Alf
  module Operator
    # 
    # Specialization of Operator for operators that work on a binary input
    #
    module Binary
      include Operator 

      # Returns the left operand
      def left
        operands.first
      end

      # Returns the right operand
      def right
        operands.last
      end

    end # module Binary
  end # module Operator
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 lib/alf/operator/binary.rb
alf-0.12.1 lib/alf/operator/binary.rb
alf-0.12.0 lib/alf/operator/binary.rb
alf-0.11.1 lib/alf/operator/binary.rb
alf-0.11.0 lib/alf/operator/binary.rb