Class: Nokogiri::XML::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/reddy/nokogiri_hacks.rb

Instance Method Summary collapse

Instance Method Details

#uriObject

URI of namespace + node_name



4
5
6
7
# File 'lib/reddy/nokogiri_hacks.rb', line 4

def uri
  ns = self.namespace ? self.namespace.href : XML_NS.uri.to_s
  Reddy::URIRef.new(ns + self.node_name)
end