-
Notifications
You must be signed in to change notification settings - Fork 0
My solution to https://gist.github.com/ctcherry/ee2b56739a559edf05f2
gisborne/ConfParser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This my solution to: https://gist.github.com/ctcherry/ee2b56739a559edf05f2 Call it like so: $ irb 2.0.0-p247 :001 > require './ConfParser.rb' => true 2.0.0-p247 :002 > f = File.open 'sample.txt' => #<File:sample.txt> 2.0.0-p247 :003 > ConfParser.parse f => {"host"=>"test.com", "server_id"=>55331, "server_load_alarm"=>2.5, "user"=>"user", "verbose"=>true, "test_mode"=>true, "debug_mode"=>"off", "log_file_path"=>"/tmp/logfile.log", "send_notifications"=>true}
About
My solution to https://gist.github.com/ctcherry/ee2b56739a559edf05f2
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published