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