Class: PryTheme::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pry-theme/config.rb

Defined Under Namespace

Classes: Executor

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Config

Returns a new instance of Config.



24
25
26
27
# File 'lib/pry-theme/config.rb', line 24

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

Instance Method Details

#applyObject



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

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