Method: Wordlist::ListMethods#downcase

Defined in:
lib/wordlist/list_methods.rb

#downcaseDowncase

Lazily calls String#downcase on each word in the wordlist.

Examples:

wordlist = Wordlist::Words["Foo", "BAR", "bAz"]
wordlist.downcase.each do |word|
  puts word
end
# foo
# bar
# baz

Returns:

  • (Downcase)

    The lazy String#gsub modification of the wordlist.

Since:

  • 1.0.0



377
378
379
# File 'lib/wordlist/list_methods.rb', line 377

def downcase
  Modifiers::Downcase.new(self)
end