Method: REXML::Functions.text
- Defined in:
- lib/rexml/functions.rb
.text ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/rexml/functions.rb', line 40 def Functions::text( ) if @@context[:node].node_type == :element @@context[:node].find_all{|n| n.node_type == :text}.collect{|n| n.value} elsif @@context[:node].node_type == :text @@context[:node].value else false end end |