module Placemaker::XmlHelper
Public Class Methods
new(nodeset)
click to toggle source
# File lib/placemaker/xml_helper.rb 3 def initialize(nodeset) 4 @nodeset = nodeset 5 end
Private Instance Methods
nested_node(name)
click to toggle source
Returns the inner text of a node with the given name under the current @nodeset
# File lib/placemaker/xml_helper.rb 8 def nested_node(name) 9 @nodeset.search(".//xmlns:#{name}").inner_text 10 end