Sha256: 1c8b8d573a136e0810ccc1ca495f1df668ea69284396427bdee0813d0820ddfd

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

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

module Wordlist
  module Operators
    #
    # Unary operator base class.
    #
    # @since 1.0.0
    #
    class UnaryOperator < Operator

      # The wordlist to operate on.
      #
      # @return [Enumerable]
      attr_reader :wordlist

      #
      # Initializes the unary operator.
      #
      # @param [Enumerable] wordlist
      #   The wordlist.
      #
      def initialize(wordlist)
        @wordlist = wordlist
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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