Module: Lotus
- Defined in:
- lib/lotus.rb,
lib/lotus/cli.rb,
lib/lotus/root.rb,
lib/lotus/loader.rb,
lib/lotus/routes.rb,
lib/lotus/lotusrc.rb,
lib/lotus/version.rb,
lib/lotus/welcome.rb,
lib/lotus/container.rb,
lib/lotus/middleware.rb,
lib/lotus/application.rb,
lib/lotus/commands/db.rb,
lib/lotus/environment.rb,
lib/lotus/commands/new.rb,
lib/lotus/config/assets.rb,
lib/lotus/config/mapper.rb,
lib/lotus/config/routes.rb,
lib/lotus/configuration.rb,
lib/lotus/views/default.rb,
lib/lotus/config/cookies.rb,
lib/lotus/config/mapping.rb,
lib/lotus/generators/app.rb,
lib/lotus/commands/routes.rb,
lib/lotus/commands/server.rb,
lib/lotus/config/security.rb,
lib/lotus/config/sessions.rb,
lib/lotus/routing/default.rb,
lib/lotus/views/null_view.rb,
lib/lotus/application_name.rb,
lib/lotus/commands/console.rb,
lib/lotus/commands/db/drop.rb,
lib/lotus/config/configure.rb,
lib/lotus/generators/model.rb,
lib/lotus/generators/slice.rb,
lib/lotus/rendering_policy.rb,
lib/lotus/commands/db/apply.rb,
lib/lotus/commands/generate.rb,
lib/lotus/config/load_paths.rb,
lib/lotus/generators/action.rb,
lib/lotus/generators/mailer.rb,
lib/lotus/commands/db/create.rb,
lib/lotus/commands/db/console.rb,
lib/lotus/commands/db/migrate.rb,
lib/lotus/commands/db/prepare.rb,
lib/lotus/commands/db/version.rb,
lib/lotus/generators/abstract.rb,
lib/lotus/commands/db/abstract.rb,
lib/lotus/generators/migration.rb,
lib/lotus/action/csrf_protection.rb,
lib/lotus/action/routing_helpers.rb,
lib/lotus/generators/application/app.rb,
lib/lotus/generators/database_config.rb,
lib/lotus/views/default_template_finder.rb,
lib/lotus/config/framework_configuration.rb,
lib/lotus/generators/application/container.rb
Overview
A complete web framework for Ruby
Defined Under Namespace
Modules: Action, Commands, Config, Generators, Mailer, Routing, Views Classes: Application, ApplicationName, Cli, Configuration, Container, Environment, Loader, Lotusrc, Middleware, RenderingPolicy, Routes, Welcome
Constant Summary collapse
- VERSION =
Defines the version
'0.5.0'.freeze
Class Method Summary collapse
-
.env ⇒ String
Return the current environment.
-
.env?(*names) ⇒ TrueClass, FalseClass
Check to see if specified environment(s) matches the current environment.
-
.environment ⇒ Lotus::Environment
private
Return environment.
-
.root ⇒ Pathname
Return root of the project (top level directory).
Class Method Details
.env ⇒ String
Return the current environment
34 35 36 |
# File 'lib/lotus.rb', line 34 def self.env environment.environment end |
.env?(*names) ⇒ TrueClass, FalseClass
Check to see if specified environment(s) matches the current environment.
If multiple names are given, it returns true, if at least one of them matches the current environment.
62 63 64 |
# File 'lib/lotus.rb', line 62 def self.env?(*names) environment.environment?(*names) end |
.environment ⇒ Lotus::Environment
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return environment
72 73 74 |
# File 'lib/lotus.rb', line 72 def self.environment Environment.new end |
.root ⇒ Pathname
Return root of the project (top level directory).
20 21 22 |
# File 'lib/lotus.rb', line 20 def self.root environment.root end |