Class: Utils
- Inherits:
-
Object
- Object
- Utils
- Defined in:
- lib/synchronize/utils.rb
Class Method Summary collapse
Class Method Details
.load_yaml_file(filename) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/synchronize/utils.rb', line 3 def load_yaml_file(filename) require 'erb' template = ERB.new(File.read(filename)) YAML.load(template.result) end |