README.md in dslh-0.3.4 vs README.md in dslh-0.3.5
- old
+ new
@@ -122,5 +122,34 @@
# end
# end
# end
# end
```
+
+### Hash List
+
+```ruby
+h = Dslh.eval do
+ glossary do |*|
+ title "example glossary"
+ date "2016-05-21 00:00:00 UTC"
+ end
+ glossary do |*|
+ title "example glossary2"
+ date "2016-05-21 00:01:00 UTC"
+ end
+ glossary2 do |*|
+ title "example glossary"
+ date "2016-05-21 00:00:00 UTC"
+ end
+end
+
+pp h
+#=> {"glossary"=>[
+# {"title"=>"example glossary",
+# "date"=>'2016-05-21 00:00:00 UTC'},
+# {"title"=>"example glossary2",
+# "date"=>'2016-05-21 00:01:00 UTC'}],
+# "glossary2"=>[
+# {"title"=>"example glossary",
+# "date"=>'2016-05-21 00:00:00 UTC'}]}
+```