Class: SvgConform::Requirements::TextAsPathRequirement::State
- Inherits:
-
Object
- Object
- SvgConform::Requirements::TextAsPathRequirement::State
- Defined in:
- lib/svg_conform/requirements/text_as_path_requirement.rb
Overview
State class for tracking elements and paths during SAX parsing
Instance Attribute Summary collapse
-
#has_image_element ⇒ Object
Returns the value of attribute has_image_element.
-
#has_text_element ⇒ Object
Returns the value of attribute has_text_element.
-
#path_ds ⇒ Object
Returns the value of attribute path_ds.
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
40 41 42 43 44 |
# File 'lib/svg_conform/requirements/text_as_path_requirement.rb', line 40 def initialize @has_text_element = false @has_image_element = false @path_ds = [] end |
Instance Attribute Details
#has_image_element ⇒ Object
Returns the value of attribute has_image_element.
38 39 40 |
# File 'lib/svg_conform/requirements/text_as_path_requirement.rb', line 38 def has_image_element @has_image_element end |
#has_text_element ⇒ Object
Returns the value of attribute has_text_element.
38 39 40 |
# File 'lib/svg_conform/requirements/text_as_path_requirement.rb', line 38 def has_text_element @has_text_element end |
#path_ds ⇒ Object
Returns the value of attribute path_ds.
38 39 40 |
# File 'lib/svg_conform/requirements/text_as_path_requirement.rb', line 38 def path_ds @path_ds end |