View gist:230557
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
require 'yaml' | |
# Retains as a constant | |
CONFIG = YAML.load_file('config.yml') | |
# or | |
# Retains as an instance variable. | |
class Config | |
def initialize(name) |