Class: ActionView::Template::Inline
- Inherits:
-
ActionView::Template
- Object
- ActionView::Template
- ActionView::Template::Inline
- 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
Constants inherited from ActionView::Template
NONE, STRICT_LOCALS_REGEX, Types
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, mime_types_implementation=, #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
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 |