Class: REXML::Element

Inherits:
Object show all
Defined in:
lib/kramdown-rfc/rexml-all-text.rb

Overview

all_text: Get all text from descendants that are Text or CData

Instance Method Summary collapse

Instance Method Details

#all_textObject



6
7
8
# File 'lib/kramdown-rfc/rexml-all-text.rb', line 6

def all_text
  @children.map {|c| c.all_text}.join
end