Class: EasyConf::Configuration
- Inherits:
-
Object
- Object
- EasyConf::Configuration
- Defined in:
- lib/easy_conf/configuration.rb
Overview
:nodoc
Instance Attribute Summary collapse
-
#decoder ⇒ Object
Returns the value of attribute decoder.
-
#lookups ⇒ Object
Returns the value of attribute lookups.
Instance Method Summary collapse
- #de_register_lookup(klass) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #register_lookup(klass) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 |
# File 'lib/easy_conf/configuration.rb', line 8 def initialize @lookups = [] end |
Instance Attribute Details
#decoder ⇒ Object
Returns the value of attribute decoder.
5 6 7 |
# File 'lib/easy_conf/configuration.rb', line 5 def decoder @decoder end |
#lookups ⇒ Object
Returns the value of attribute lookups.
6 7 8 |
# File 'lib/easy_conf/configuration.rb', line 6 def lookups @lookups end |
Instance Method Details
#de_register_lookup(klass) ⇒ Object
21 22 23 |
# File 'lib/easy_conf/configuration.rb', line 21 def de_register_lookup(klass) @lookups -= [klass] end |
#register_lookup(klass) ⇒ Object
16 17 18 19 |
# File 'lib/easy_conf/configuration.rb', line 16 def register_lookup(klass) register_placeholder(klass.placeholder) @lookups << klass end |