Class: Archangel::Config
- Inherits:
-
Anyway::Config
- Object
- Anyway::Config
- Archangel::Config
- Defined in:
- lib/archangel/config.rb
Overview
Application configurations
Instance Method Summary collapse
-
#keys_in(keys) ⇒ Hash
Return a blog of key/values as a hash.
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" }
28 29 30 |
# File 'lib/archangel/config.rb', line 28 def keys_in(keys) to_h.select { |key| keys.include?(key) } end |