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

Inherits:
Element
  • Object
show all
Extended by:
Profile::DSL
Defined in:
lib/sevgi/graphics/document/base.rb

Direct Known Subclasses

Base

Constant Summary

Constants inherited from Element

Element::RootParent

Instance Attribute Summary

Attributes included from Profile::DSL

#profile

Attributes inherited from Element

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Profile::DSL

document, mixture

Methods inherited from Element

#initialize, #method_missing, #respond_to_missing?

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



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

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

.preamblesObject



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

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

Instance Method Details

#callObject



16
17
18
19
20
21
# File 'lib/sevgi/graphics/document/base.rb', line 16

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

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