Class: CloudFormatter::Reference::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_formatter/reference.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Map

Returns a new instance of Map


12
13
14
# File 'lib/cloud_formatter/reference.rb', line 12

def initialize(name)
  @name = name.to_s
end

Instance Method Details

#[](key) ⇒ Object


16
17
18
# File 'lib/cloud_formatter/reference.rb', line 16

def [](key)
  Key.new(@name, [key])
end