Class: Array

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

Instance Method Summary collapse

Instance Method Details

#replace_each_string(&block) ⇒ Object



131
132
133
134
135
136
137
# File 'lib/maruku/element.rb', line 131

def replace_each_string(&block)
  self.map! do |c|
    next yield c if c.is_a?(String)
    c.replace_each_string(&block)
    c
  end
end