Class: Raml::ResourceType
- Defined in:
- lib/raml/node/resource_type.rb
Defined Under Namespace
Classes: Instance
Instance Attribute Summary
Attributes inherited from ValueNode
Attributes inherited from Node
Instance Method Summary collapse
-
#instantiate(params) ⇒ Raml::ResourceType::Instance
Instantiate a new resource type with the given parameters.
Methods inherited from Template
Methods inherited from ValueNode
Methods inherited from Node
Constructor Details
This class inherits a constructor from Raml::ValueNode
Instance Method Details
#instantiate(params) ⇒ Raml::ResourceType::Instance
Instantiate a new resource type with the given parameters.
14 15 16 17 18 |
# File 'lib/raml/node/resource_type.rb', line 14 def instantiate(params) instance = Instance.new( *interpolate(params), @parent ) instance.apply_resource_type instance end |