Module: Mojito
- Defined in:
- lib/mojito.rb,
lib/mojito/base.rb,
lib/mojito/utils/status_codes.rb,
lib/mojito/helpers/exception_handling.rb
Defined Under Namespace
Modules: Base, ClassMethods, Controllers, Helpers, Rendering
Classes: HttpStatusCode, MojitoException
Constant Summary
collapse
- R =
Rendering
- H =
Helpers
- C =
Controllers
- STATUS =
{}
Class Method Summary
collapse
Class Method Details
.development? ⇒ Boolean
31
32
33
|
# File 'lib/mojito.rb', line 31
def development?
mode == :development
end
|
.included(type) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/mojito.rb', line 20
def included(type)
type.instance_exec do
include Mojito::Base
end
type.extend ClassMethods
end
|
.mode ⇒ Object
27
28
29
|
# File 'lib/mojito.rb', line 27
def mode
(ENV['RACK_ENV'] || :development).to_sym
end
|