Class: Croesus::DSL
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(&block) ⇒ DSL
constructor
A new instance of DSL.
- #resource(resource_name, &block) ⇒ Object
Constructor Details
#initialize(&block) ⇒ DSL
Returns a new instance of DSL.
27 28 29 |
# File 'lib/croesus/dsl/dsl.rb', line 27 def initialize(&block) instance_eval(&block) end |
Class Method Details
Instance Method Details
#resource(resource_name, &block) ⇒ Object
31 32 33 |
# File 'lib/croesus/dsl/dsl.rb', line 31 def resource(resource_name, &block) Croesus::ResourceDSL.new(resource_name, &block) end |