Module: Venme
- Defined in:
- lib/venme.rb,
lib/venme/version.rb,
lib/venme/configuration.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .configuration ⇒ Object (also: config)
- .configuration=(object) ⇒ Object (also: config=)
- .configure {|configuration| ... } ⇒ Object
- .reset_configuration! ⇒ Object (also: reset_config!)
Class Method Details
.configuration ⇒ Object Also known as: config
10 11 12 |
# File 'lib/venme.rb', line 10 def self.configuration @configuration ||= Venme::Configuration.new end |
.configuration=(object) ⇒ Object Also known as: config=
14 15 16 17 18 |
# File 'lib/venme.rb', line 14 def self.configuration=(object) raise ConfigError, "Expected configuration to be a Venme::Configuration" unless object.is_a?(Venme::Configuration) @configuration = object end |
.configure {|configuration| ... } ⇒ Object
6 7 8 |
# File 'lib/venme.rb', line 6 def self.configure yield configuration if block_given? end |
.reset_configuration! ⇒ Object Also known as: reset_config!
20 21 22 |
# File 'lib/venme.rb', line 20 def self.reset_configuration! @configuration = Venme::Configuration.new end |