README.md in set_builder-2.0.0.beta2 vs README.md in set_builder-2.0.0.beta3
- old
+ new
@@ -13,19 +13,19 @@
### Example
The following Set describes a group of people:
- [[:awesome],
- [:attended, "school"],
- [:died, :not],
- [:name, {:is => "Jerome"}]]
+ [{ trait: :awesome, choices: ["are"] },
+ { trait: :attended, choices: ["have"], school: "school" },
+ { trait: :died, choices: ["have not"] },
+ { trait: :name, modifiers: [{ operator: :is, values: ["Jerome"] }] }]
SetBuilder can render this Set in plain English:
- [Everyone] who is awesome, who attended school, who has not died, and whose name is Jerome.
+ [Those] who are awesome, who have attended school, who have not died, and whose name is Jerome.
-It can also generate a NamedScope on an ActiveRecord model to fetch the people who fit in this set.
+It can also generate an `ActiveRecord::Relation` on an ActiveRecord model to fetch the people who fit in this set.
### Running the tests
*Ruby* `bundle exec rake test`