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

Description

@jmanero-r7

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions