Module: Xommelier::Xml::Element::Namespace::ClassMethods
- Defined in:
- lib/xommelier/xml/element/namespace.rb
Instance Method Summary collapse
-
#schema ⇒ Nokogiri::XML::Schema
Schema associated with element's namespace or module.
-
#schema_location ⇒ String
Path to schema file.
-
#xmlns(value = nil) ⇒ Xommelier::Xml::Namespace
Associated namespace.
- #xmlns=(value) ⇒ Object
Instance Method Details
#schema ⇒ Nokogiri::XML::Schema
Returns schema associated with element's namespace or module.
36 |
# File 'lib/xommelier/xml/element/namespace.rb', line 36 delegate :schema, to: :containing_module |
#schema_location ⇒ String
Returns path to schema file.
39 |
# File 'lib/xommelier/xml/element/namespace.rb', line 39 delegate :schema_location, to: :containing_module |
#xmlns(value = nil) ⇒ Xommelier::Xml::Namespace
Returns associated namespace.
20 21 22 23 |
# File 'lib/xommelier/xml/element/namespace.rb', line 20 def xmlns(value = nil) self.xmlns = value if value @xmlns ||= find_namespace end |
#xmlns=(value) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/xommelier/xml/element/namespace.rb', line 26 def xmlns=(value) @xmlns = case value when Module value.xmlns else value end end |