lib/xommelier/xml/namespace.rb in xommelier-0.1.1 vs lib/xommelier/xml/namespace.rb in xommelier-0.1.2

- old
+ new

@@ -57,9 +57,13 @@ options[:ns] ||= self elements.find_or_create(name, options, &block) end end + def to_hash + {as.to_s => uri.to_s} + end + def inspect %(xmlns:#{as}="#{uri}") end end end