Class: ActionView::Template::Inline
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
self,
::ActionView::Template
|
|
Inherits: |
ActionView::Template
|
Defined in: | actionview/lib/action_view/template/inline.rb |
Constant Summary
-
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
::ActionView::Template
- Inherited
LEADING_ENCODING_REGEXP, NONE, RUBY_RESERVED_KEYWORDS, STRICT_LOCALS_REGEX, Types
Class Attribute Summary
::ActionView::Template
- Inherited
Class Method Summary
::ActionView::Template
- Inherited
Handlers
- Extended
handler_for_extension, register_default_template_handler, | |
register_template_handler | Register an object that knows how to handle template files with the given extensions. |
registered_template_handler, template_handler_extensions, | |
unregister_template_handler | Opposite to register_template_handler. |
::ActiveSupport::Autoload
- Extended
Instance Attribute Summary
::ActionView::Template
- Inherited
#format, #frozen_string_literal, #handler, #identifier, | |
#strict_locals? | Returns whether a template is using strict locals. |
#supports_streaming? | Returns whether the underlying handler supports streaming. |
#variable, #variant, #virtual_path |
Instance Method Summary
::ActionView::Template
- Inherited
#encode! | This method is responsible for properly setting the encoding of the source. |
#inspect, | |
#local_assigns | Returns a hash with the defined local variables. |
#locals | The locals this template has been or will be compiled for, or nil if this is a strict locals template. |
#render | Render a template. |
#short_identifier, #source, | |
#strict_locals! | This method is responsible for marking a template as having strict locals which means the template can only accept the locals defined in a magic comment. |
#translate_location | Translate an error location returned by ErrorHighlight to the correct source location inside the template. |
#type, | |
#compile | Among other things, this method is responsible for properly setting the encoding of the compiled template. |
#compile! | Compile a template. |
#compiled_source | This method compiles the source of the template. |
#find_node_by_id, #handle_render_error, #identifier_method_name, #instrument, #instrument_payload, #instrument_render_template, #locals_code, #offset, | |
#marshal_dump | Exceptions are marshalled when using the parallel test runner with DRb, so we need to ensure that references to the template object can be marshalled as well. |
#marshal_load, #method_name, #spot |
Constructor Details
This class inherits a constructor from ActionView::Template
Instance Method Details
#compile(mod)
[ GitHub ]# File 'actionview/lib/action_view/template/inline.rb', line 16
def compile(mod) super ObjectSpace.define_finalizer(self, Finalizer[method_name, mod]) end