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

Instance Attribute Summary

Attributes inherited from ActionView::Template

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

Instance Method Summary collapse

Methods inherited from ActionView::Template

#encode!, finalize_compiled_template_methods, finalize_compiled_template_methods=, #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

Methods included from ActiveSupport::Autoload

#autoload, #autoload_at, #autoload_under, #autoloads, #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