Module: Sinatra::Namespace::InstanceMethods
- Defined in:
- lib/sinatra/namespace.rb
Instance Method Summary collapse
Instance Method Details
#redirect_to(uri, *args) ⇒ Object
216 217 218 |
# File 'lib/sinatra/namespace.rb', line 216 def redirect_to(uri, *args) redirect("#{@namespace.pattern}#{uri}", *args) end |
#settings ⇒ Object
208 209 210 |
# File 'lib/sinatra/namespace.rb', line 208 def settings @namespace end |
#template_cache ⇒ Object
212 213 214 |
# File 'lib/sinatra/namespace.rb', line 212 def template_cache super.fetch(:nested, @namespace) { TemplateCache.new } end |