Sha256: 873f3b430980563c29ff500e001eeaccdf4113a6e21cc70f749a5673ce0264b3

Contents?: true

Size: 221 Bytes

Versions: 10

Compression:

Stored size: 221 Bytes

Contents

require 'nokogiri'
class Nokogiri::XML::Node
  # URI of namespace + node_name
  def uri
    ns = self.namespace ? self.namespace.href : RdfContext::XML_NS.uri.to_s
    RdfContext::URIRef.new(ns + self.node_name)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rdf_context-0.5.5 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.5.3 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.5.2 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.5.1 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.5.0 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.4.8 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.4.7 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.4.6 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.4.5 lib/rdf_context/nokogiri_hacks.rb
rdf_context-0.4.4 lib/rdf_context/nokogiri_hacks.rb