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" }

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

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