Class: ActionView::Template::Handler

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_view/template/handler.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(template) ⇒ Object


37
38
39
# File 'actionpack/lib/action_view/template/handler.rb', line 37

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

.inherited(base) ⇒ Object


31
32
33
34
35
# File 'actionpack/lib/action_view/template/handler.rb', line 31

def self.inherited(base)
  ActiveSupport::Deprecation.warn "Inheriting from ActionView::Template::Handler is deprecated. " <<
    "Since Rails 3, all the API your template handler needs to implement is to respond to #call."
  super
end

Instance Method Details

#render(template, local_assigns) ⇒ Object


41
42
43
# File 'actionpack/lib/action_view/template/handler.rb', line 41

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