Class: Sevgi::Graphics::Document::Proto
- Defined in:
- lib/sevgi/graphics/document.rb
Overview
Base document root element class.
Direct Known Subclasses
Constant Summary
Constants inherited from Element
Instance Attribute Summary
Attributes inherited from Element
#attributes, #children, #contents, #name, #parent
Class Method Summary collapse
-
.attributes ⇒ Hash
Returns inherited root attributes for this document class.
-
.preambles ⇒ Array<String>?
Returns inherited preamble lines for this document class.
Instance Method Summary collapse
-
#call(*objects, **options) ⇒ String
Renders the document.
Methods inherited from Element
element, #initialize, #method_missing, #respond_to_missing?, root, root?
Methods included from Element::Ident
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
Class Method Details
.attributes ⇒ Hash
Returns inherited root attributes for this document class.
201 |
# File 'lib/sevgi/graphics/document.rb', line 201 def self.attributes = self == Proto ? {} : {**superclass.attributes, **profile.attributes} |
.preambles ⇒ Array<String>?
Returns inherited preamble lines for this document class.
205 |
# File 'lib/sevgi/graphics/document.rb', line 205 def self.preambles = self == Proto ? nil : profile.preambles || superclass.preambles |
Instance Method Details
#call(*objects, **options) ⇒ String
192 193 194 195 196 197 |
# File 'lib/sevgi/graphics/document.rb', line 192 def call(*, **) = DEFAULTS.merge(**) self.PreRender(*, **) if respond_to?(:PreRender) self.Render(*, **) end |