Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Johnson committed Dec 1, 2012
1 parent 8941034 commit 3714d15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var names = ruler()
.is('name.first', 'john')
.not('name.last', 'buzz')

var info = rule()
var info = ruler()
.contains('company', 'red')
.gte('age', 21);

Expand All @@ -114,12 +114,12 @@ assert.equal(result, true);
You can plugin custom "comparators" if the baked in one's do not fit your needs.

```javascript
function double(actual, total){
function doubled(actual, total){
return (actual * 2) == total;
}

var engine = ruler()
.use(double, 'price', 40);
.use(doubled, 'price', 40);

engine.test({
price: 20
Expand Down

0 comments on commit 3714d15

Please sign in to comment.