Class: Canpe::TemplateBinding
- Inherits:
-
Object
- Object
- Canpe::TemplateBinding
- Defined in:
- lib/canpe/template_binding.rb
Instance Attribute Summary collapse
-
#canpe_hash ⇒ Object
readonly
Returns the value of attribute canpe_hash.
Instance Method Summary collapse
- #canpe ⇒ Object
-
#initialize(canpe_hash = {}) ⇒ TemplateBinding
constructor
A new instance of TemplateBinding.
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_hash ⇒ Object (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
#canpe ⇒ Object
13 14 15 |
# File 'lib/canpe/template_binding.rb', line 13 def canpe @_canpe ||= TemplateBindingContainer.new(canpe_hash) end |