Class: ActionView::UnboundTemplate
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionview/lib/action_view/unbound_template.rb |
Class Method Summary
Instance Method Summary
Constructor Details
.new(source, identifier, handler, options) ⇒ UnboundTemplate
# File 'actionview/lib/action_view/unbound_template.rb', line 7
def initialize(source, identifier, handler, ) @source = source @identifier = identifier @handler = handler @options = @templates = Concurrent::Map.new(initial_capacity: 2) end
Instance Method Details
#bind_locals(locals)
[ GitHub ]# File 'actionview/lib/action_view/unbound_template.rb', line 16
def bind_locals(locals) @templates[locals] ||= build_template(locals) end