Skip to content

Instantly share code, notes, and snippets.

View gist:230557
require 'yaml'
# Retains as a constant
CONFIG = YAML.load_file('config.yml')
# or
# Retains as an instance variable.
class Config
def initialize(name)