Class: SvgConform::SaxAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/svg_conform/element_proxy.rb

Overview

Lightweight attribute representation for SAX parsing

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/svg_conform/element_proxy.rb', line 6

def name
  @name
end

#valueObject (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

#namespaceObject



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