Permalink
Browse files

Update README with example of dereferenced hash table header

  • Loading branch information...
1 parent fd693fa commit 17712f9b2e20a67f3d49ea7c1340815f7c11fed8 @lodestone lodestone committed May 12, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.rdoc
View
@@ -40,6 +40,19 @@ You use tags, similar to html, to set formatting options:
| Bill | French fries |
+------+--------------+
+ table_data = [
+ {:name => "Joe", :meal => {:main_dish => "Burger", :drink => "water"},
+ {:name => "Bill", :meal => {:main_dish => "Chicken", drink => "soda"}
+ ]
+ Formatador.display_table(table_data, [:name, :"meal.drink"])
+
+ +------+------------+
+ | name | meal.drink |
+ +------+------------+
+ | Joe | water |
+ +------+------------+
+ | Bill | soda |
+ +------+------------+
== Indentation

0 comments on commit 17712f9

Please sign in to comment.