class Srx::XmlWrapper
Abstract convenience wrapper around Nokogiri XML node
Constants
- NS
Public Class Methods
new(xml)
click to toggle source
# File lib/srx/data.rb, line 10 def initialize(xml) @xml = xml end
Public Instance Methods
xpath(*segments)
click to toggle source
# File lib/srx/data.rb, line 14 def xpath(*segments) path = ['.', *segments].join('/srx:') @xml.xpath(path, NS) end