Class: Mccloud::Config::Component

Inherits:
Object
  • Object
show all
Defined in:
lib/mccloud/config/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#definitionObject

Returns the value of attribute definition.



6
7
8
# File 'lib/mccloud/config/component.rb', line 6

def definition
  @definition
end

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/mccloud/config/component.rb', line 8

def env
  @env
end

#providerObject

Returns the value of attribute provider.



5
6
7
# File 'lib/mccloud/config/component.rb', line 5

def provider
  @provider
end