Created
February 9, 2015 19:49
-
-
Save skwp/b09266a62cd29b9c8ffc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YamlErb | |
# Loads a yaml file that contains erb | |
def self.load_file(path) | |
YAML.load(ERB.new(File.read(path)).result) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment