Class: Raml::Trait
- Defined in:
- lib/raml/node/trait.rb
Defined Under Namespace
Classes: Instance
Instance Attribute Summary
Attributes inherited from ValueNode
Attributes inherited from Node
Instance Method Summary collapse
-
#instantiate(params) ⇒ Raml::Trait::Instance
Instantiate a new trait 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::Trait::Instance
Instantiate a new trait with the given parameters.
14 15 16 |
# File 'lib/raml/node/trait.rb', line 14 def instantiate(params) Instance.new( *interpolate(params), @parent ) end |