Class: Wordlist::AbstractWordlist

Inherits:
Object
  • Object
show all
Includes:
Enumerable, ListMethods
Defined in:
lib/wordlist/abstract_wordlist.rb

Overview

The base class for all wordlist classes.

Since:

  • 1.0.0

Direct Known Subclasses

File, Words

Instance Method Summary collapse

Methods included from ListMethods

#capitalize, #concat, #downcase, #gsub, #intersect, #mutate, #mutate_case, #power, #product, #sub, #subtract, #tr, #union, #uniq, #upcase

Instance Method Details

#each(&block) ⇒ Object

This method is abstract.

Place holder method.

Raises:

  • (NotImplementedError)

Since:

  • 1.0.0



20
21
22
# File 'lib/wordlist/abstract_wordlist.rb', line 20

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