Sha256: 88bf92426332ee437dade20cc6ae3da3948c3d6835c7d54e5fb20a898f97dc22

Contents?: true

Size: 930 Bytes

Versions: 2

Compression:

Stored size: 930 Bytes

Contents

# encoding: utf-8

module Axiom
  module Operation
    module Binary
      include Equalizer.new(:left, :right)

      # The left operand for the operation
      #
      # @example
      #   left = binary.left
      #
      # @return [Object]
      #
      # @api public
      attr_reader :left

      # The right operand for the operation
      #
      # @example
      #   right = binary.right
      #
      # @return [Object]
      #
      # @api public
      attr_reader :right

      # Initialize Binary Operation
      #
      # @param [Object] left
      #   the left operand for the operation
      # @param [Object] right
      #   the right operand for the operation
      #
      # @return [undefined]
      #
      # @api private
      def initialize(left, right)
        @left  = freeze_object(left)
        @right = freeze_object(right)
      end

    end # module Binary
  end # module Operation
end # module Axiom

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.1.1 lib/axiom/support/operation/binary.rb
axiom-0.1.0 lib/axiom/support/operation/binary.rb