Class: Nokogiri::XML::Element

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/xml/reader.rb

Instance Method Summary collapse

Methods included from Common

#ns_name

Instance Method Details

#baseObject



196
197
198
199
# File 'lib/xml/reader.rb', line 196

def base
  att = document.root.attributes['base']
  att.nil? ? '' : att.value
end

#subnodesObject



200
201
202
# File 'lib/xml/reader.rb', line 200

def subnodes
  children.reject { |child| child.text? }
end