Class: CloudBuilder::Reference::Map

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Map

Returns a new instance of Map.



62
63
64
# File 'lib/cloud_builder/reference.rb', line 62

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

Instance Method Details

#[](key) ⇒ Object



66
67
68
# File 'lib/cloud_builder/reference.rb', line 66

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