class XML::Smart::Dom::Namespace
Public Class Methods
Public Instance Methods
Source
# File lib/xml/smart_domnamespace.rb, line 23 def ==(other) return false unless other return false unless other.respond_to?(:to_s) to_s == other.to_s end
Source
# File lib/xml/smart_domnamespace.rb, line 15 def prefix if @ns.prefix @ns.prefix else @ns.document.custom_namespace_prefixes.find{|k,v| v == @ns.href}[0] end end