Class: Veewee::Config::Component

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ 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

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env


7
8
9
# File 'lib/veewee/config/component.rb', line 7

def env
  @env
end

#providerObject

Returns the value of attribute provider


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

def provider
  @provider
end