Method: Wordlist::ListMethods#gsub
- Defined in:
- lib/wordlist/list_methods.rb
#gsub(pattern, replace = nil) {|match| ... } ⇒ Gsub
Lazily calls String#gsub on each word in the wordlist.
310 311 312 313 314 315 316 |
# File 'lib/wordlist/list_methods.rb', line 310 def gsub(pattern,replace=nil,&block) if replace Modifiers::Gsub.new(self,pattern,replace,&block) else Modifiers::Gsub.new(self,pattern,&block) end end |