Created — forked from carlosantoniodasilva/config.rb

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Simple config class

View config.rb
1 2 3 4 5 6 7 8 9 10 11
## Simple config class - testing purposes =)
FooConfig = do
def initialize(config_file, env)
@config = YAML.load_file(config_file)[env]
def method_missing(method, *args)
@config.send(:[], method.to_s, *args)
end'config/foo.yml', Rails.env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.