README.rdoc in iniparse-1.1.5 vs README.rdoc in iniparse-1.1.6

- old
+ new

@@ -1,6 +1,6 @@ -= IniParse += IniParse {<img src="https://secure.travis-ci.org/antw/iniparse.png" alt="Build Status" />}[http://travis-ci.org/antw/iniparse] IniParse is a pure Ruby library for parsing INI[http://en.wikipedia.org/wiki/INI_file] configuration and data files. @@ -32,10 +32,10 @@ === Opening an INI file Parsing an INI file is fairly simple: - IniParse.parse( File.open('path/to/my/file.ini') ) # => IniParse::Document + IniParse.parse( File.read('path/to/my/file.ini') ) # => IniParse::Document IniParse.parse returns an IniParse::Document instance which represents the passed "INI string". Assuming you know the structure of the document, you can access the sections in the INI document with IniParse::Document#[]. For example: