Class: RecursiveReplace

Inherits:
Object
  • Object
show all
Defined in:
lib/wordpress_deploy.rb

Class Method Summary collapse

Class Method Details

.find_and_replace!(find, replace, obj) ⇒ Object



16
17
18
19
# File 'lib/wordpress_deploy.rb', line 16

def self.find_and_replace!(find, replace, obj)
  m = "find_and_replace_#{obj.class}!"
  send(m, find, replace, obj) if respond_to? m, true
end