README.md in toml-rb-0.1.2 vs README.md in toml-rb-0.1.3

- old
+ new

@@ -9,12 +9,12 @@ Installation ------------ $ gem install toml-rb -Usage ------ +Parser Usage +------------ ```ruby require 'toml' # From a file! @@ -28,13 +28,38 @@ [awesome] you = true others = false EOS TOML.parse(stream) +# => {"title"=>"wow!", "awesome"=>{"you"=>true, "others"=>false}} # You want symbols as your keys? No problem! TOML.load_file(path, symbolize_keys: true) # Works the same for TOML.parse +``` + +Dumper Usage +------------ + +```ruby +require 'toml' + +# Simple example +TOML.dump( simple: true) +# => "simple = true\n" + + +# Complex example +hash = { + "title"=>"wow!", + "awesome"=> { + "you"=>true, + "others"=>false + } +} + +TOML.dump(hash) +# => "title = \"wow!\"\n[awesome]\nothers = false\nyou = true\n" ``` Contributing ------------