Class: PryTheme::Theme::Definition::Compound Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.2.0

Direct Known Subclasses

Regexp

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.

Since:

  • 0.2.0

[:self_, :char, :content, :delimiter, :escape]

Instance Method Summary collapse

Methods included from PryTheme::Theme::DynamicMethod

def_dynamic_methods

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.

Since:

  • 0.2.0



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