Class: Prawn::SVG::Elements::DepthFirstBase
- Defined in:
- lib/prawn/svg/elements/depth_first_base.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Base::COMMA_WSP_REGEXP, Base::MissingAttributesError, Base::PAINT_TYPES, Base::SVG_NAMESPACE, Base::SkipElementError, Base::SkipElementQuietly
Constants included from Attributes::Stroke
Attributes::Stroke::CAP_STYLE_TRANSLATIONS, Attributes::Stroke::JOIN_STYLE_TRANSLATIONS
Instance Attribute Summary
Attributes inherited from Base
#attributes, #base_calls, #calls, #document, #parent_calls, #properties, #source, #state
Instance Method Summary collapse
-
#initialize(document, source, parent_calls, state) ⇒ DepthFirstBase
constructor
A new instance of DepthFirstBase.
- #parse_and_apply ⇒ Object
- #process ⇒ Object
Methods inherited from Base
Methods included from TransformParser
Methods included from PDFMatrix
#load_matrix, #matrix_for_pdf, #rotation_matrix, #scale_matrix, #translation_matrix
Methods included from Attributes::Space
Methods included from Attributes::Stroke
#parse_stroke_attributes_and_call
Methods included from Attributes::ClipPath
#parse_clip_path_attribute_and_call
Methods included from Attributes::Opacity
#parse_opacity_attributes_and_call
Methods included from Attributes::Transform
#parse_transform_attribute_and_call
Constructor Details
#initialize(document, source, parent_calls, state) ⇒ DepthFirstBase
Returns a new instance of DepthFirstBase.
2 3 4 5 |
# File 'lib/prawn/svg/elements/depth_first_base.rb', line 2 def initialize(document, source, parent_calls, state) super @base_calls = @calls = @parent_calls end |
Instance Method Details
#parse_and_apply ⇒ Object
15 16 17 |
# File 'lib/prawn/svg/elements/depth_first_base.rb', line 15 def parse_and_apply raise 'unsupported' end |
#process ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/prawn/svg/elements/depth_first_base.rb', line 7 def process parse_step apply_step(calls) rescue SkipElementQuietly rescue SkipElementError => e @document.warnings << e. end |