Class: PryTheme::Theme::Definition::Compound Private
- Inherits:
-
Object
- Object
- PryTheme::Theme::Definition::Compound
- Extended by:
- PryTheme::Theme::DynamicMethod
- Includes:
- PryTheme::Theme::DefaultAttrs
- Defined in:
- lib/pry-theme/definition.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Constant Summary collapse
- ATTRS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[:self_, :char, :content, :delimiter, :escape]
Instance Method Summary collapse
-
#initialize(color_model, &block) ⇒ Compound
constructor
private
A new instance of Compound.
Methods included from PryTheme::Theme::DynamicMethod
Methods included from PryTheme::Theme::DefaultAttrs
#method_missing, #set_default_attrs, #set_nested_attrs
Constructor Details
#initialize(color_model, &block) ⇒ Compound
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Compound.
87 88 89 90 91 |
# File 'lib/pry-theme/definition.rb', line 87 def initialize(color_model, &block) @color_model = color_model set_default_attrs(ATTRS) instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PryTheme::Theme::DefaultAttrs