class TINCheck::XML::Nokogiri::Parser

Private Instance Methods

root(xml) click to toggle source
# File lib/tincheck/xml/nokogiri.rb, line 14
def root(xml)
  ::Nokogiri::XML(xml) { |c| c.options = ::Nokogiri::XML::ParseOptions::NOBLANKS }
end
value_with!(element) click to toggle source
# File lib/tincheck/xml/nokogiri.rb, line 18
def value_with!(element)
  element.elements.empty? ? text_or_nil(element.text) : hash_with(*element.elements)
end