Methods
Class Public methods
new(source, identifier, handler, options)
📝 Source code
# File actionview/lib/action_view/unbound_template.rb, line 7
def initialize(source, identifier, handler, options)
@source = source
@identifier = identifier
@handler = handler
@options = options
@templates = Concurrent::Map.new(initial_capacity: 2)
end
🔎 See on GitHub
Instance Public methods
bind_locals(locals)
📝 Source code
# File actionview/lib/action_view/unbound_template.rb, line 16
def bind_locals(locals)
@templates[locals] ||= build_template(locals)
end
🔎 See on GitHub