Class: Coconut::Dsl::Asset
- Inherits:
-
Object
- Object
- Coconut::Dsl::Asset
- Defined in:
- lib/coconut/dsl/asset.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(current_environment) ⇒ Asset
constructor
A new instance of Asset.
- #run(&config) ⇒ Object
Constructor Details
#initialize(current_environment) ⇒ Asset
Returns a new instance of Asset.
11 12 13 |
# File 'lib/coconut/dsl/asset.rb', line 11 def initialize(current_environment) @current_environment = current_environment end |
Class Method Details
.configure(environment, &config) ⇒ Object
7 8 9 |
# File 'lib/coconut/dsl/asset.rb', line 7 def self.configure(environment, &config) new(environment).run(&config) end |
Instance Method Details
#run(&config) ⇒ Object
15 16 17 18 19 |
# File 'lib/coconut/dsl/asset.rb', line 15 def run(&config) @properties = {} instance_eval &config @properties end |