module FN::Util
Public Instance Methods
raise_unless_xml_doc(xml)
click to toggle source
# File lib/fn/util.rb, line 16 def raise_unless_xml_doc(xml) if !xml.is_a?(XML::Document) raise XMLTypeError.new("Not a LibXML doc") end end
raise_unless_xml_node(xml)
click to toggle source
# File lib/fn/util.rb, line 23 def raise_unless_xml_node(xml) if !xml.is_a?(XML::Node) raise XMLTypeError.new("Not a LibXML node") end end