class method
self.new
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
self.new(source, identifier, handler, details)
No documentation comment.
Parameters
-
sourcereq -
identifierreq -
handlerreq -
detailsreq
Source
# File actionpack/lib/action_view/template.rb, line 115
def initialize(source, identifier, handler, details)
format = details[:format] || (handler.default_format if handler.respond_to?(:default_format))
@source = source
@identifier = identifier
@handler = handler
@compiled = false
@original_encoding = nil
@locals = details[:locals] || []
@virtual_path = details[:virtual_path]
@updated_at = details[:updated_at] || Time.now
@formats = Array.wrap(format).map { |f| f.is_a?(Mime::Type) ? f.ref : f }
@compile_mutex = Mutex.new
end
Defined in actionpack/lib/action_view/template.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template