README.md in dottie-0.0.1 vs README.md in dottie-0.0.2

- old
+ new

@@ -113,9 +113,24 @@ complex.hash # => {"a"=>[{"b"=>"x"}, {"d"=>"e"}]} # add another array element complex['a[2]'] = 'y' complex.hash # => {"a"=>[{"b"=>"x"}, {"d"=>"e"}, "y"]} + +# elements can also be prepended and appended to arrays +complex['a[+]'] = 'z' # can also use 'a[<<]' and 'a[append]' +complex.hash # => {"a"=>[{"b"=>"x"}, {"d"=>"e"}, "y", "z"]} + +complex['a[-]'] = 'p' # can also use 'a[>>]' and 'a[prepend]' +complex.hash # => {"a"=>["p", {"b"=>"x"}, {"d"=>"e"}, "y", "z"]} + +# use delete as you would on a Hash +complex.delete('a[1].b') # => "x" +complex.hash # => {"a"=>["p", {}, {"d"=>"e"}, "y", "z"]} + +# delete an element at an array index +complex.delete('a[1]') # => {} +complex.hash # => {"a"=>["p", {"d"=>"e"}, "y", "z"]} ``` ### Dottie Usage Options There are three basic ways of using Dottie: