Module: Xommelier::Xml::ClassMethods
Instance Method Summary collapse
-
#xmlns(uri = nil, options = {}, &block) ⇒ Object
Defines namespace used in formats.
Methods included from Schema
#schema, #schema=, #schema_location, #schema_location=
Instance Method Details
#xmlns(uri = nil, options = {}, &block) ⇒ Object
Defines namespace used in formats
24 25 26 27 28 29 30 |
# File 'lib/xommelier/xml.rb', line 24 def xmlns(uri = nil, = {}, &block) if uri [:module] ||= self instance_variable_set(:@_xmlns, Xommelier::Xml::Namespace.new(uri, , &block)) end instance_variable_get(:@_xmlns) || Xml.xmlns end |