Module: ROXML::XML::NodeExtensions
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
46 47 48 |
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 46 def attributes self end |
#default_namespace ⇒ Object
50 51 52 |
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 50 def default_namespace document.default_namespace end |
#search(xpath, roxml_namespaces = {}) ⇒ Object
41 42 43 44 |
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 41 def search(xpath, roxml_namespaces = {}) xpath = "./#{xpath}" (roxml_namespaces.present? ? super(xpath, roxml_namespaces) : super(xpath)).map {|i| i } end |