Module: Sinatra::Namespace::InstanceMethods
Relationships & Source Files | |
Defined in: | sinatra-contrib/lib/sinatra/namespace.rb |
Instance Method Summary
Instance Method Details
#redirect_to(uri, *args)
[ GitHub ]# File 'sinatra-contrib/lib/sinatra/namespace.rb', line 216
def redirect_to(uri, *args) redirect("#{@namespace.pattern}#{uri}", *args) end
#settings
[ GitHub ]# File 'sinatra-contrib/lib/sinatra/namespace.rb', line 208
def settings @namespace end
#template_cache
[ GitHub ]# File 'sinatra-contrib/lib/sinatra/namespace.rb', line 212
def template_cache super.fetch(:nested, @namespace) { TemplateCache.new } end