Class: ActionView::Template::Inline

Inherits:
ActionView::Template show all
Defined in:
actionview/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

Constants inherited from ActionView::Template

NONE, STRICT_LOCALS_REGEX

Instance Attribute Summary

Attributes inherited from ActionView::Template

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

Instance Method Summary collapse

Methods inherited from ActionView::Template

#encode!, #initialize, #inspect, #locals, #marshal_dump, #marshal_load, #method_name, #render, #short_identifier, #source, #spot, #strict_locals!, #strict_locals?, #supports_streaming?, #translate_location, #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

Methods included from ActiveSupport::Autoload

#autoload, #autoload_at, #autoload_under, #eager_autoload, #eager_load!, extended

Constructor Details

This class inherits a constructor from ActionView::Template

Instance Method Details

#compile(mod) ⇒ Object



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

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