123456789_123456789_123456789_123456789_123456789_

Class: ActionView::Template::Inline

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActionView::Template
Defined in: actionview/lib/action_view/template/inline.rb

Constant Summary

::ActionView::Template - Inherited

LEADING_ENCODING_REGEXP, NONE, STRICT_LOCALS_REGEX, Types

Class Attribute Summary

Class Method Summary

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