Class: Veewee::Config::Component
- Defined in:
- lib/veewee/config/component.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#provider ⇒ Object
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(config) ⇒ Component
constructor
A new instance of Component.
- #method_missing(m, *args, &block) ⇒ Object
Constructor Details
#initialize(config) ⇒ Component
Returns a new instance of Component.
9 10 11 |
# File 'lib/veewee/config/component.rb', line 9 def initialize(config) @env=config.env end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
13 14 15 |
# File 'lib/veewee/config/component.rb', line 13 def method_missing(m, *args, &block) # env.ui.info "There's no method called #{m} here -- please try again." end |