Class: Sinatra::Application

Inherits:
Default show all
Defined in:
lib/sinatra/base.rb

Overview

The top-level Application. All DSL methods executed on main are delegated to this class.

Constant Summary

Constants inherited from Base

Base::CALLERS_TO_IGNORE

Instance Attribute Summary

Attributes inherited from Base

#app, #env, #params, #request, #response

Method Summary

Methods inherited from Default

configures, const_missing, default_options, #entity_tag, env, env=, #header, #invoke, #method_missing, options, #options, register, #render, #send_data, set_option, set_options, #stop

Methods inherited from Base

before, #call, call, #call!, caller_files, caller_locations, condition, configure, delete, development?, disable, enable, error, extensions, #forward, get, #halt, head, helpers, #initialize, layout, media_type, new, not_found, #options, #pass, post, production?, prototype, put, register, reset!, run!, set, template, test?, use, use_in_file_templates!

Methods included from Templates

#builder, #erb, #haml, #sass

Methods included from Helpers

#attachment, #back, #body, #content_type, #error, #etag, #headers, #last_modified, #media_type, #not_found, #redirect, #send_file, #session, #status

Constructor Details

This class inherits a constructor from Sinatra::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sinatra::Default