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

Class Method Details

.configurationObject 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=

Raises:

  • (ConfigError)


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

Yields:



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