Methods
Included Modules
Classes and Modules
Module Nitro::IncomingMailerModule Nitro::OutgoingMailer
Module Nitro::Scaffold
Class Nitro::Application
Class Nitro::Args
Class Nitro::DrbServer
Class Nitro::Mail
Class Nitro::MailTemplate
Class Nitro::Mailer
Class Nitro::Part
Constants
| Version | = | "0.50.0" |
| The version of Nitro. | ||
| LibPath | = | File.dirname(__FILE__) |
| Library path. | ||
Attributes
| [RW] | mode |
The execution mode, typical modes include :debug, :stage, :live.
[:live] use the parameters for the live (production) server. Optimized for speed. Tries to set the default value from the NITRO_MODE environment variable. |
Public Class methods
Are we running in live mode ?
[ show source ]
# File lib/nitro.rb, line 79
79: def live?
80: @mode == :live
81: end
A helper method to start a Nitro application.
[ show source ]
# File lib/nitro.rb, line 70
70: def start(controller = Controller)
71: @application = Application.new
72: @application.dispatcher = Dispatcher.new(controller)
73: @application.start
74: end