Class: Calligraphy::XML::Namespace
- Inherits:
-
Object
- Object
- Calligraphy::XML::Namespace
- Defined in:
- lib/calligraphy/xml/namespace.rb
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
A new instance of Namespace.
Constructor Details
#initialize(namespace) ⇒ Namespace
Returns a new instance of Namespace.
5 6 7 8 |
# File 'lib/calligraphy/xml/namespace.rb', line 5 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.
3 4 5 |
# File 'lib/calligraphy/xml/namespace.rb', line 3 def href @href end |
#prefix ⇒ Object
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/calligraphy/xml/namespace.rb', line 3 def prefix @prefix end |