Class: Synvert::Core::Configuration

Inherits:
Hash
  • Object
show all
Includes:
Singleton
Defined in:
lib/synvert/core/configuration.rb

Overview

Synvert global configuration.

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object

Get the configuration.

Parameters:

  • key (String)

    configuration key.

Returns:

  • (Object)

    configuration value.



21
22
23
# File 'lib/synvert/core/configuration.rb', line 21

def get(key)
  self[key]
end

#set(key, value) ⇒ Object

Set the configuration.

Parameters:

  • key (String)

    configuration key.

  • value (Object)

    configuration value.



13
14
15
# File 'lib/synvert/core/configuration.rb', line 13

def set(key, value)
  self[key] = value
end