Class: Canpe::TemplateBinding

Inherits:
Object
  • Object
show all
Defined in:
lib/canpe/template_binding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(canpe_hash = {}) ⇒ TemplateBinding

Returns a new instance of TemplateBinding.



9
10
11
# File 'lib/canpe/template_binding.rb', line 9

def initialize(canpe_hash = {})
  @canpe_hash = canpe_hash
end

Instance Attribute Details

#canpe_hashObject (readonly)

Returns the value of attribute canpe_hash.



7
8
9
# File 'lib/canpe/template_binding.rb', line 7

def canpe_hash
  @canpe_hash
end

Instance Method Details

#canpeObject



13
14
15
# File 'lib/canpe/template_binding.rb', line 13

def canpe
  @_canpe ||= TemplateBindingContainer.new(canpe_hash)
end