README.md in hash_dot-2.0.3 vs README.md in hash_dot-2.1.0
- old
+ new
@@ -1,8 +1,8 @@
# HashDot
-HashDot allows you to call your Ruby hash properties with a dot syntax.
+HashDot allows you to get and set your Ruby hash properties with a dot syntax.
```ruby
require 'hash_dot'
user = {name: 'Anna', job: {title: 'Programmer'}}.to_dot
@@ -10,9 +10,14 @@
user.job.title #=> 'Programmer'
user.job.title = 'Senior Programmer'
user.job.title #=> 'Senior Programmer'
user.job.delete(:title)
user.job.title #=> NoMethodError
+ user.job.title = 'Engineer'
+ user.job.title #=> 'Engineer'
+ user.job.department = 'DevOps'
+ user.job.department #=> 'DevOps'
+ user #=> {:name=>'Anna', :job=>{:title=>'Engineer', :department=>'DevOps'}}
```
You can also allow dot syntax for all hashes via the class setting.
```ruby