lib/xommelier/xml/namespace.rb in xommelier-0.1.16 vs lib/xommelier/xml/namespace.rb in xommelier-0.1.18
- old
+ new
@@ -79,11 +79,15 @@
def to_hash
{as.to_s => uri.to_s}
end
+ def attribute_name
+ default? ? 'xmlns' : "xmlns:#{as}"
+ end
+
def inspect
- %(xmlns:#{as}="#{uri}")
+ %(#{attribute_name}="#{uri}")
end
end
end
end