Skip to content

Feature: take file_content of file_name in constructor #27

Description

@MadBomber

Suppose I have:

config = <<EOS
[my_group]
  my_param = 42
EOS
# I now want to do:
result = ParseConfig.new(config) # new feature takes content not filename
# and some place else I want to do
result = ParseConfig.new('/path/to/my.conf') # current way

What do you think? Does this have value to anyone else?

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions