Skip to content

gchaturvedi/ini_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby INI file parser - fun exercise

  • This was a fun exercise to parse a PHP INI file using Ruby.

Design choices

  • Uses lazy evaluation to create the methods for the queries (method_missing) for returning the object quickly.
  • File.foreach for parsing the file one line at a time.
  • Used rubocop for style & complexity analysis

Testing strategies

  • Rspec + Variety of edge cases
  • Mostly integration tests due to shortage of time.

Notes

  • The lib/load_config.rb contains the defined method: load_config.
  • Used ruby 2.1.4

About

Ruby INI file parser exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages