Class: Sevgi::Graphics::Document::Proto

Inherits:
Element
  • Object
show all
Defined in:
lib/sevgi/graphics/document.rb

Direct Known Subclasses

Base

Constant Summary

Constants inherited from Element

Element::RootParent

Instance Attribute Summary

Attributes inherited from Element

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

element, #initialize, #method_missing, #respond_to_missing?, root, root?

Methods included from Element::Ident

#id

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

.attributesObject



77
# File 'lib/sevgi/graphics/document.rb', line 77

def self.attributes = self == Proto ? {} : {**superclass.attributes, **profile.attributes}

.preamblesObject



79
# File 'lib/sevgi/graphics/document.rb', line 79

def self.preambles = self == Proto ? nil : profile.preambles || superclass.preambles

Instance Method Details

#callObject



70
71
72
73
74
75
# File 'lib/sevgi/graphics/document.rb', line 70

def call(*, **)
  options = DEFAULTS.merge(**)

  self.PreRender(*, **options) if respond_to?(:PreRender)
  self.Render(*, **options)
end