Module: YAML
- Defined in:
- lib/keyth/yaml.rb
Overview
Monkey-patch YAML to support auto-loading keyth keys
Class Method Summary collapse
-
.load(file) ⇒ Object
loads the yaml file, then replaces all keyth: links with the appropriate values.
- .pre_keyth_load ⇒ Object
Class Method Details
.load(file) ⇒ Object
loads the yaml file, then replaces all keyth: links with the appropriate values. Params:
file
-
file object containing YAML to read
12 13 14 |
# File 'lib/keyth/yaml.rb', line 12 def self.load(file) Keyth.fetch_keys(pre_keyth_load(file)) end |
.pre_keyth_load ⇒ Object
5 |
# File 'lib/keyth/yaml.rb', line 5 alias_method(:pre_keyth_load, :load) |