Class: Stache::Handlebars::View

Inherits:
Handlebars::Context
  • Object
show all
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

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

#viewObject

Returns the value of attribute view.



8
9
10
# File 'lib/stache/handlebars/view.rb', line 8

def view
  @view
end