Class: SvgConform::SaxAttribute
- Inherits:
-
Object
- Object
- SvgConform::SaxAttribute
- Defined in:
- lib/svg_conform/element_proxy.rb
Overview
Lightweight attribute representation for SAX parsing
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ SaxAttribute
constructor
A new instance of SaxAttribute.
- #namespace ⇒ Object
Constructor Details
#initialize(name, value) ⇒ SaxAttribute
Returns a new instance of SaxAttribute.
8 9 10 11 |
# File 'lib/svg_conform/element_proxy.rb', line 8 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/svg_conform/element_proxy.rb', line 6 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/svg_conform/element_proxy.rb', line 6 def value @value end |
Instance Method Details
#namespace ⇒ Object
13 14 15 |
# File 'lib/svg_conform/element_proxy.rb', line 13 def namespace nil # DOM handles namespaces via XPath; SAX checks attribute names directly end |