Class: Calligraphy::XML::Namespace
- Inherits:
-
Object
- Object
- Calligraphy::XML::Namespace
- Defined in:
- lib/calligraphy/xml/namespace.rb
Overview
Simple XML namespace, used to store a namespace’s href and prefix values.
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(namespace) ⇒ Namespace
constructor
:nodoc:.
Constructor Details
#initialize(namespace) ⇒ Namespace
:nodoc:
10 11 12 13 |
# File 'lib/calligraphy/xml/namespace.rb', line 10 def initialize(namespace) @href = namespace.href if namespace.href @prefix = namespace.prefix if namespace.prefix end |
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
7 8 9 |
# File 'lib/calligraphy/xml/namespace.rb', line 7 def href @href end |
#prefix ⇒ Object
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/calligraphy/xml/namespace.rb', line 7 def prefix @prefix end |