Class: SvgConform::Requirements::InvalidIdReferencesRequirement::State
- Inherits:
-
Object
- Object
- SvgConform::Requirements::InvalidIdReferencesRequirement::State
- Defined in:
- lib/svg_conform/requirements/invalid_id_references_requirement.rb
Overview
State class for tracking ID references during SAX parsing
Instance Attribute Summary collapse
-
#collected_ids ⇒ Object
Returns the value of attribute collected_ids.
-
#existing_ids ⇒ Object
Returns the value of attribute existing_ids.
-
#other_refs ⇒ Object
Returns the value of attribute other_refs.
-
#use_element_refs ⇒ Object
Returns the value of attribute use_element_refs.
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
34 35 36 37 38 39 |
# File 'lib/svg_conform/requirements/invalid_id_references_requirement.rb', line 34 def initialize @collected_ids = Set.new @use_element_refs = [] @other_refs = [] @existing_ids = nil end |
Instance Attribute Details
#collected_ids ⇒ Object
Returns the value of attribute collected_ids.
31 32 33 |
# File 'lib/svg_conform/requirements/invalid_id_references_requirement.rb', line 31 def collected_ids @collected_ids end |
#existing_ids ⇒ Object
Returns the value of attribute existing_ids.
31 32 33 |
# File 'lib/svg_conform/requirements/invalid_id_references_requirement.rb', line 31 def existing_ids @existing_ids end |
#other_refs ⇒ Object
Returns the value of attribute other_refs.
31 32 33 |
# File 'lib/svg_conform/requirements/invalid_id_references_requirement.rb', line 31 def other_refs @other_refs end |
#use_element_refs ⇒ Object
Returns the value of attribute use_element_refs.
31 32 33 |
# File 'lib/svg_conform/requirements/invalid_id_references_requirement.rb', line 31 def use_element_refs @use_element_refs end |