Module: Tynn::Settings::InstanceMethods
- Defined in:
- lib/tynn/settings.rb
Instance Method Summary collapse
-
#settings ⇒ Object
Returns a Hash with the application settings.
Instance Method Details
#settings ⇒ Object
Returns a Hash with the application settings.
Examples
Tynn.set(:environment, :development)
Tynn.define do
get do
res.write(settings[:environment])
end
end
GET / # => 200 "development"
73 74 75 |
# File 'lib/tynn/settings.rb', line 73 def settings return self.class.settings end |