Method: Tataru::ResourceDsl#initialize
- Defined in:
- lib/tataru/resource_dsl.rb
#initialize(name, desc) ⇒ ResourceDsl
Returns a new instance of ResourceDsl.
8 9 10 11 12 13 14 |
# File 'lib/tataru/resource_dsl.rb', line 8 def initialize(name, desc) @properties = {} @desc = desc @fields = Set.new(@desc.mutable_fields + @desc.immutable_fields) @name = name @dependencies = Set.new end |