Module: Sinatra::Namespace::InstanceMethods

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/namespace.rb

Instance Method Summary collapse

Instance Method Details

#redirect_to(uri, *args) ⇒ Object



216
217
218
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/namespace.rb', line 216

def redirect_to(uri, *args)
  redirect("#{@namespace.pattern}#{uri}", *args)
end

#settingsObject



208
209
210
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/namespace.rb', line 208

def settings
  @namespace
end

#template_cacheObject



212
213
214
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/namespace.rb', line 212

def template_cache
  super.fetch(:nested, @namespace) { Tilt::Cache.new }
end