Sha256: 5b71ab2bf84499473d7d5c87eb3c227dfa8a185a94d81d9d73978721f674f740

Contents?: true

Size: 694 Bytes

Versions: 4

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true
require 'wordlist/operators/operator'

module Wordlist
  module Operators
    #
    # Binary operator base class.
    #
    # @since 1.0.0
    #
    class BinaryOperator < Operator

      # The left operand.
      #
      # @return [Enumerable]
      attr_reader :left

      # The right operand.
      #
      # @return [Enumerable]
      attr_reader :right

      #
      # Initializes the binary operator.
      #
      # @param [Enumerable] left
      #   The left operand.
      #
      # @param [Enumerable] right
      #   The right operand.
      #
      def initialize(left,right)
        @left  = left
        @right = right
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wordlist-1.1.0 lib/wordlist/operators/binary_operator.rb
wordlist-1.0.3 lib/wordlist/operators/binary_operator.rb
wordlist-1.0.2 lib/wordlist/operators/binary_operator.rb
wordlist-1.0.1 lib/wordlist/operators/binary_operator.rb