Class: Veewee::Config::Veewee
- Inherits:
-
Object
- Object
- Veewee::Config::Veewee
- Defined in:
- lib/veewee/config/veewee.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(config) ⇒ Veewee
constructor
A new instance of Veewee.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(config) ⇒ Veewee
Returns a new instance of Veewee.
7 8 9 10 |
# File 'lib/veewee/config/veewee.rb', line 7 def initialize(config) @env=config.env env.logger.info("Initializing veewee config object") end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
12 13 14 |
# File 'lib/veewee/config/veewee.rb', line 12 def method_missing(m, *args, &block) @env.send(m, *args) end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/veewee/config/veewee.rb', line 5 def env @env end |