Skip to content

Commit

Permalink
Updated readme to include new pattern option
Browse files Browse the repository at this point in the history
  • Loading branch information
thetron committed Feb 17, 2013
1 parent 33b6079 commit 1542c3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -74,6 +74,8 @@ The options for `contains` are as follows:
* `:numeric` - numbers only, anything from 1 character long, up to and
`length`
* `:fixed_numeric` - numbers only, but with the number of characters always the same as `length`
* :fixed_numeric_no_leading_zeros - as above, but will never start with
zeros

You can also rename the token field, if required, using the
`:field_name` option:
Expand All @@ -89,6 +91,8 @@ You can also rename the token field, if required, using the
from `0` upto `9999` - but in a random order
* `token :length => 4, :contains => :fixed_numeric` will generate
anything from `0000` to `9999` in a random order
* token :length => 4, :contains => :fixed_numeric_no_leading_zeros will
generate anything from 1000 to 9999 in a random order


## Finders
Expand Down

0 comments on commit 1542c3d

Please sign in to comment.