Class: Wordlist::Modifiers::Downcase
- Defined in:
- lib/wordlist/modifiers/downcase.rb
Overview
Lazily calls String#downcase
on every word in the wordlist.
Instance Attribute Summary
Attributes inherited from Modifier
Instance Method Summary collapse
-
#each {|word| ... } ⇒ Enumerator
Enumerates over every
downcase
d word in the wordlist.
Methods inherited from Modifier
Constructor Details
This class inherits a constructor from Wordlist::Modifiers::Modifier
Instance Method Details
#each {|word| ... } ⇒ Enumerator
Enumerates over every downcase
d word in the wordlist.
36 37 38 39 40 41 42 |
# File 'lib/wordlist/modifiers/downcase.rb', line 36 def each return enum_for(__method__) unless block_given? @wordlist.each do |word| yield word.downcase end end |