Skip to content

jrobertson/simple-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the Simple-config gem

require 'simple-config'

txt =<<EOF
file_path: abc def
description: xyx 123
EOF

sc = SimpleConfig.new(txt)
sc.to_h #=> {:file_path=>"abc def", :description=>"xyx 123"}
puts sc.write

Output:

file_path: abc def
description: xyx 123

Resources

simpleconfig gem

About

Parses a string representing a simple config file (format similar to a hash without commas, or quotation marks).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages