Class: ActionView::Template::Inline

Inherits:
ActionView::Template show all
Defined in:
lib/action_view/template/inline.rb

Overview

:nodoc:

Constant Summary collapse

Finalizer =

This finalizer is needed (and exactly with a proc inside another proc) otherwise templates leak in development.

proc do |method_name, mod| # :nodoc:
  proc do
    mod.module_eval do
      remove_possible_method method_name
    end
  end
end

Instance Attribute Summary

Attributes inherited from ActionView::Template

#format, #handler, #identifier, #locals, #variable, #variant, #virtual_path

Instance Method Summary collapse

Methods inherited from ActionView::Template

#encode!, #initialize, #inspect, #marshal_dump, #marshal_load, #render, #short_identifier, #source, #supports_streaming?, #type

Methods included from Handlers

extended, extensions, #handler_for_extension, #register_default_template_handler, #register_template_handler, #registered_template_handler, #template_handler_extensions, #unregister_template_handler

Constructor Details

This class inherits a constructor from ActionView::Template

Instance Method Details

#compile(mod) ⇒ Object



16
17
18
19
# File 'lib/action_view/template/inline.rb', line 16

def compile(mod)
  super
  ObjectSpace.define_finalizer(self, Finalizer[method_name, mod])
end