Method: I18nTemplate::Node#descendants_text

Defined in:
lib/i18n_template/node.rb

#descendants_textObject



63
64
65
66
67
68
69
70
71
72
# File 'lib/i18n_template/node.rb', line 63

def descendants_text
  output = ""
  children.each do |child|
    output << child.token if child.text?
    child.children.each do |node|
      output << node.descendants_text
    end
  end
  output
end