Class: Wordlist::Operators::Operator

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/wordlist/operators/operator.rb

Overview

Operator base class.

Since:

  • 1.0.0

Direct Known Subclasses

BinaryOperator, UnaryOperator

Instance Method Summary collapse

Instance Method Details

#each {|word| ... } ⇒ Enumerator

This method is abstract.

Place-holder method.

Yields:

  • (word)

Yield Parameters:

  • word (String)

Returns:

  • (Enumerator)

Raises:

  • (NotImplementedError)

Since:

  • 1.0.0



23
24
25
# File 'lib/wordlist/operators/operator.rb', line 23

def each(&block)
  raise(NotImplementedError,"#{self.class}#each was not implemented")
end