Class: ActionView::Template::LegacyTemplate

Inherits:
ActionView::Template show all
Defined in:
actionview/lib/action_view/template.rb

Overview

:nodoc:

Instance Attribute Summary collapse

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=, #inspect, #marshal_dump, #marshal_load, #render, #short_identifier, #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

#initialize(template, source) ⇒ LegacyTemplate

Returns a new instance of LegacyTemplate.



292
293
294
295
# File 'actionview/lib/action_view/template.rb', line 292

def initialize(template, source)
  super(template)
  @source = source
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source



290
291
292
# File 'actionview/lib/action_view/template.rb', line 290

def source
  @source
end