Class: Stacco::Template::Type

Inherits:
ColonPath show all
Defined in:
lib/stacco/template.rb

Instance Method Summary collapse

Methods inherited from ColonPath

#to_s

Instance Method Details

#elements_for_jsonObject



82
83
84
# File 'lib/stacco/template.rb', line 82

def elements_for_json
  [:aws] + self
end

#resource(name = nil) ⇒ Object



86
87
88
# File 'lib/stacco/template.rb', line 86

def resource(name = nil)
  Resource[*(self + [name].compact)]
end