Class: PryTheme::Config Private

Inherits:
Object
  • Object
show all
Defined in:
lib/pry-theme/config.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.

Does what the Pry.config.theme_options hash orders. Currently, it supports only boolean values.

Since:

  • 1.1.0

Defined Under Namespace

Classes: Executor

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Config

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 Config.

Since:

  • 1.1.0



30
31
32
33
# File 'lib/pry-theme/config.rb', line 30

def initialize(options)
  @executor = Executor.new
  @options = options
end

Instance Method Details

#applyObject

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.

Since:

  • 1.1.0



35
36
37
38
39
# File 'lib/pry-theme/config.rb', line 35

def apply
  @options.each do |key, value|
    @executor.__send__(key) if value
  end
end