Class: Stache::Handlebars::View
- Inherits:
-
Handlebars::Context
- Object
- Handlebars::Context
- Stache::Handlebars::View
- Defined in:
- lib/stache/handlebars/view.rb
Overview
A Convienent Base Class for the views. Subclass this for autoloading magic with your templates.
Instance Attribute Summary collapse
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/stache/handlebars/view.rb', line 10 def method_missing(method, *args, &block) view.send(method, *args, &block) end |
Instance Attribute Details
#view ⇒ Object
Returns the value of attribute view.
8 9 10 |
# File 'lib/stache/handlebars/view.rb', line 8 def view @view end |