Class: Sevgi::Graphics::Document::Base

Inherits:
Proto show all
Defined in:
lib/sevgi/graphics/document/base.rb

Overview

Abstract common document layer with the profile-independent DSL mixture set. It is not registered as a selectable profile. Advanced extensions may target this class through Mixtures.mixin; doing so changes every descendant profile process-wide. Subclass it first when an extension should remain scoped.

Direct Known Subclasses

Default, Minimal

Instance Attribute Summary

Attributes inherited from Element

#attributes, #children, #contents, #name, #parent

Instance Method Summary collapse

Methods inherited from Proto

attributes, #call, preambles, profile

Methods inherited from Element

element, #initialize, root, root?, valid?

Constructor Details

This class inherits a constructor from Sevgi::Graphics::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sevgi::Graphics::Element

Instance Method Details

#PreRender(**options) ⇒ void

This method returns an undefined value.

Runs pre-render validation and lint checks.

Parameters:

  • options (Hash)

    pre-render options

Options Hash (**options):

  • :validate (Boolean)

    run SVG standard validation

  • :lint (Boolean)

    run document lint checks

Raises:



31
32
33
34
# File 'lib/sevgi/graphics/document/base.rb', line 31

def PreRender(**options)
  self.Validate() if options[:validate]
  self.Lint() if options[:lint]
end