Class: Raml::Template

Inherits:
ValueNode show all
Defined in:
lib/raml/node/template.rb

Direct Known Subclasses

ResourceType, SecurityScheme, Trait

Instance Attribute Summary

Attributes inherited from ValueNode

#value

Attributes inherited from Node

#name, #parent

Instance Method Summary collapse

Methods inherited from ValueNode

#initialize

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Raml::ValueNode

Instance Method Details

#interpolate(params) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/raml/node/template.rb', line 7

def interpolate(params)
  name = @name.clone
  data = clone_data
  interpolate_params name, params
  interpolate_params data, params
  [ name, data ]
end