Class: Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudformation-ruby-dsl/dsl.rb

Overview

This class is used by erb templates so they can access the parameters passed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Namespace

Returns a new instance of Namespace.



255
256
257
# File 'lib/cloudformation-ruby-dsl/dsl.rb', line 255

def initialize(hash)
  @params = hash
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



254
255
256
# File 'lib/cloudformation-ruby-dsl/dsl.rb', line 254

def params
  @params
end

Instance Method Details

#get_bindingObject



258
259
260
# File 'lib/cloudformation-ruby-dsl/dsl.rb', line 258

def get_binding
  binding
end