Class: Wordlist::Modifiers::MutateCase
- Defined in:
- lib/wordlist/modifiers/mutate_case.rb
Overview
Lazily enumerates through every possible upper/lower-case variation of each word in the wordlist.
Instance Attribute Summary
Attributes inherited from Sub
Attributes inherited from Modifier
Instance Method Summary collapse
-
#initialize(wordlist) ⇒ MutateCase
constructor
Initializes the case mutator.
Methods inherited from Mutate
Methods inherited from Sub
Methods inherited from Modifier
Constructor Details
#initialize(wordlist) ⇒ MutateCase
Initializes the case mutator.
20 21 22 |
# File 'lib/wordlist/modifiers/mutate_case.rb', line 20 def initialize(wordlist) super(wordlist,/[[:alpha:]]/) { |letter| letter.swapcase } end |