Class: Coconut::Dsl::AssetSetup
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- Coconut::Dsl::AssetSetup
- Defined in:
- lib/coconut/dsl/asset_setup.rb
Instance Method Summary collapse
-
#initialize(properties) ⇒ AssetSetup
constructor
A new instance of AssetSetup.
- #method_missing(name, *args, &block) ⇒ Object
Methods inherited from BlankSlate
Constructor Details
#initialize(properties) ⇒ AssetSetup
Returns a new instance of AssetSetup.
6 7 8 |
# File 'lib/coconut/dsl/asset_setup.rb', line 6 def initialize(properties) @properties = properties end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
10 11 12 13 |
# File 'lib/coconut/dsl/asset_setup.rb', line 10 def method_missing(name, *args, &block) return @properties[name] if @properties.has_key? name super end |