Class: Mccloud::Config::Component
- Inherits:
-
Object
- Object
- Mccloud::Config::Component
- Defined in:
- lib/mccloud/config/component.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#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.
10 11 12 |
# File 'lib/mccloud/config/component.rb', line 10 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
14 15 16 |
# File 'lib/mccloud/config/component.rb', line 14 def method_missing(m, *args, &block) # env.ui.info "There's no method called #{m} here -- please try again." end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
6 7 8 |
# File 'lib/mccloud/config/component.rb', line 6 def definition @definition end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/mccloud/config/component.rb', line 8 def env @env end |
#provider ⇒ Object
Returns the value of attribute provider.
5 6 7 |
# File 'lib/mccloud/config/component.rb', line 5 def provider @provider end |