Module: Regentanz
- Defined in:
- lib/regentanz/version.rb,
lib/regentanz/astronomy.rb,
lib/regentanz/callbacks.rb,
lib/regentanz/cache/base.rb,
lib/regentanz/cache/file.rb,
lib/regentanz/test_helper.rb,
lib/regentanz/configurator.rb,
lib/regentanz/configuration.rb,
lib/regentanz/google_weather.rb,
lib/regentanz/conditions/base.rb,
lib/regentanz/conditions/current.rb,
lib/regentanz/conditions/forecast.rb,
lib/regentanz/parser/google_weather.rb
Defined Under Namespace
Modules: Astronomy, Cache, Callbacks, Conditions, Parser, TestHelper Classes: Configuration, GoogleWeather
Constant Summary collapse
- VERSION =
"0.2.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
:nodoc:.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Call this method to modify defaults in your initializers.
Class Attribute Details
.configuration ⇒ Object
:nodoc:
5 6 7 |
# File 'lib/regentanz/configurator.rb', line 5 def configuration #:nodoc: @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Call this method to modify defaults in your initializers. See Regentanz::Configuration for supported config options.
Example usage
Regentanz.configure do |config|
config.<supported_config_option> = :bar
end
16 17 18 19 |
# File 'lib/regentanz/configurator.rb', line 16 def configure self.configuration ||= Configuration.new yield(configuration) end |