Class: Nokogiri::XML::Element
- Inherits:
-
Object
- Object
- Nokogiri::XML::Element
- Includes:
- Common
- Defined in:
- lib/xml/reader.rb
Instance Method Summary collapse
Methods included from Common
Instance Method Details
#base ⇒ Object
196 197 198 199 |
# File 'lib/xml/reader.rb', line 196 def base att = document.root.attributes['base'] att.nil? ? '' : att.value end |
#subnodes ⇒ Object
200 201 202 |
# File 'lib/xml/reader.rb', line 200 def subnodes children.reject { |child| child.text? } end |