Class: Archangel::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/archangel/config.rb

Overview

Application configurations

Instance Method Summary collapse

Instance Method Details

#keys_in(keys) ⇒ Hash

Return a blog of key/values as a hash

Example

Archangel.config.keys_in([:foo, :bat]) => { foo: "bar", bat: "baz" }

Parameters:

  • keys (Array)

    array of keys to find key/values for

Returns:

  • (Hash)

    key/value hash


27
28
29
# File 'lib/archangel/config.rb', line 27

def keys_in(keys)
  to_h.select { |key| keys.include?(key) }
end