Class: Coconut::Dsl::AssetSetup

Inherits:
BlankSlate show all
Defined in:
lib/coconut/dsl/asset_setup.rb

Instance Method Summary collapse

Methods inherited from BlankSlate

__forbidden_names

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