class Raml::ResourceType
Public Instance Methods
instantiate(params)
click to toggle source
Instantiate a new resource type with the given parameters. @param params [Hash] the parameters to interpolate in the resource type. @return [Raml::ResourceType::Instance] the instantiated resouce type.
# File lib/raml/node/resource_type.rb, line 14 def instantiate(params) instance = Instance.new( *interpolate(params), @parent ) instance.apply_resource_type instance end