Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Config.load should grok the file type passed to it and parse appropriately #10

Open
jmanero-r7 opened this issue Dec 2, 2015 · 0 comments

Comments

@jmanero-r7
Copy link
Contributor

Per @fmitchell-r7's comment in #9 (#9 (comment)):

I'm not a fan of encoding type information in method names, since it leads to an explosion of methods as more supported types are added. I want to be able to write code like

Config.load 'config.rb'
Config.load 'config.json'
Config.load 'config.ini'

and have the Config::File class make a best guess as to what type of file it's loading. If it makes the wrong guess, I should be able to explicitly specify type.

Config.load 'config.properties', :type => :java
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant