Sha256: 04815d675f133c389d377bdb2b9383843666adf1bd05ef3240e901cc9931eed7

Contents?: true

Size: 204 Bytes

Versions: 1

Compression:

Stored size: 204 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gkellogg-reddy-0.2.1 lib/reddy/nokogiri_hacks.rb