Class: ActionView::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/template_handler.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view = nil) ⇒ TemplateHandler

Returns a new instance of TemplateHandler.


26
27
28
# File 'lib/action_view/template_handler.rb', line 26

def initialize(view = nil)
  @view = view
end

Class Method Details

.call(template) ⇒ Object


22
23
24
# File 'lib/action_view/template_handler.rb', line 22

def self.call(template)
  "#{name}.new(self).render(template, local_assigns)"
end

Instance Method Details

#render(template, local_assigns) ⇒ Object


30
31
32
# File 'lib/action_view/template_handler.rb', line 30

def render(template, local_assigns)
  raise "Need to implement #{self.class.name}#render(template, local_assigns)"
end