Sha256: f077c412a12446afeb2abfce27bf559fe652e596f6d129657d1c9a7d81cc2f25

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true
require_relative '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

1 entries across 1 versions & 1 rubygems

Version Path
wordlist-1.1.1 lib/wordlist/operators/unary_operator.rb