Method: Wordlist::ListMethods#mutate
- Defined in:
- lib/wordlist/list_methods.rb
#mutate(pattern, replace = nil) {|match| ... } ⇒ Mutate
Lazily performs every combination of a string substitution on every word in the wordlist.
417 418 419 420 421 422 423 |
# File 'lib/wordlist/list_methods.rb', line 417 def mutate(pattern,replace=nil,&block) if replace Modifiers::Mutate.new(self,pattern,replace,&block) else Modifiers::Mutate.new(self,pattern,&block) end end |