Lazily calls String#upcase on each word in the wordlist.
String#upcase
wordlist = Wordlist::Words["foo", "bar", "baz"] wordlist.upcase.each do |word| puts word end # FOO # BAR # BAZ
Returns:
The lazy String#gsub modification of the wordlist.
String#gsub
Since:
1.0.0
356 357 358
# File 'lib/wordlist/list_methods.rb', line 356 def upcase Modifiers::Upcase.new(self) end