Class: OpenXml::Builder::Namespace
- Inherits:
-
Object
- Object
- OpenXml::Builder::Namespace
- Defined in:
- lib/openxml/builder/namespace.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(prefix, uri) ⇒ Namespace
constructor
A new instance of Namespace.
Constructor Details
#initialize(prefix, uri) ⇒ Namespace
Returns a new instance of Namespace.
6 7 8 9 |
# File 'lib/openxml/builder/namespace.rb', line 6 def initialize(prefix, uri) @prefix = prefix.to_s @uri = uri end |
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/openxml/builder/namespace.rb', line 4 def prefix @prefix end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/openxml/builder/namespace.rb', line 4 def uri @uri end |