Class: Momo::MomoScope

Inherits:
Object
  • Object
show all
Defined in:
lib/momo/momoscope.rb

Direct Known Subclasses

Mapping, MappingRow, Resource, Stack

Instance Method Summary collapse

Instance Method Details

#call(name, *args) ⇒ Object



58
59
60
# File 'lib/momo/momoscope.rb', line 58

def call(name, *args)
	FuncCall.new(name, @stack, *args)
end

#lookup(map_name, key, item) ⇒ Object



66
67
68
# File 'lib/momo/momoscope.rb', line 66

def lookup(map_name, key, item)
	call("Fn::FindInMap", map_name, key, item)
end

#ref(resource) ⇒ Object



62
63
64
# File 'lib/momo/momoscope.rb', line 62

def ref(resource)
	Reference.new(resource)
end