class ActionView::Template

def strict_locals!

specifying defaults.
Strict locals are useful for validating template arguments and for

<%# locals: (title: "Default title", comment_count: 0) %>

+comment_count+, add the following to your template file:
comment. For example, if your template acceps the locals +title+ and
which means the template can only accept the locals defined in a magic
This method is responsible for marking a template as having strict locals
def strict_locals!
  if @strict_locals == NONE
    self.source.sub!(STRICT_LOCALS_REGEX, "")
    @strict_locals = $1
    return if @strict_locals.nil? # Magic comment not found
    @strict_locals = "**nil" if @strict_locals.blank?
  end
  @strict_locals
end