Class: SvgConform::Requirements::TextAsPathRequirement::State

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeState

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_elementObject

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_elementObject

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_dsObject

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