Class: Sumi::Graphics::Document::Base
- Defined in:
- graphics/lib/sumi/graphics/document/base.rb,
showcase/lib/sumi/showcase/passive.rb
Overview
Abstract common document layer with the profile-independent DSL mixture set. It is not registered as a selectable profile. Advanced extensions can target this class through Mixtures.mixin. This changes every descendant profile process-wide. Subclass it first to keep an extension scoped.
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#PreRender(**options) ⇒ void
Runs pre-render validation and lint checks.
-
#Save(*args, **kwargs) ⇒ Object
Redirects showcase saves to stdout during passive integration tests.
-
#Save!(*args, **kwargs) ⇒ Object
Redirects forced showcase saves to stdout during passive integration tests.
Methods inherited from Proto
attributes, #call, preambles, profile
Methods inherited from Element
#children, #contents, element, #inspect, #parent, root, root?, valid?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sumi::Graphics::Element
Instance Method Details
#PreRender(**options) ⇒ void
This method returns an undefined value.
Runs pre-render validation and lint checks.
32 33 34 35 |
# File 'graphics/lib/sumi/graphics/document/base.rb', line 32 def PreRender(**) self.Validate() if [:validate] self.Lint() if [:lint] end |
#Save(*args, **kwargs) ⇒ Object
13 |
# File 'showcase/lib/sumi/showcase/passive.rb', line 13 def Save(_path = nil, **kwargs) = Out(**kwargs.except(:default, :backup_suffix)) |
#Save!(*args, **kwargs) ⇒ Object
21 |
# File 'showcase/lib/sumi/showcase/passive.rb', line 21 def Save!(...) = Save(...) |