Class: PryTheme::Config Private
- Inherits:
-
Object
- Object
- PryTheme::Config
- 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.
Defined Under Namespace
Classes: Executor
Instance Method Summary collapse
- #apply ⇒ Object private
-
#initialize(options) ⇒ Config
constructor
private
A new instance of Config.
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.
30 31 32 33 |
# File 'lib/pry-theme/config.rb', line 30 def initialize() @executor = Executor.new @options = end |
Instance Method Details
#apply ⇒ Object
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.
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 |