Skip to content

Commit

Permalink
readme about approved tables
Browse files Browse the repository at this point in the history
  • Loading branch information
scytherswings committed Nov 22, 2018
1 parent 34e470b commit d0a1383
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ An [InsufficientTablesError](lib/pgdice.rb) will be raised if any conditions are
This will check that there are 7 future tables from now and that there are 90 past tables
per our configuration above.

## Listing approved tables

Sometimes you might need to know the tables configured for `PgDice`. To list the configured tables
you can run:
```ruby
PgDice.approved_tables
```

The [ApprovedTables](lib/pgdice/approved_tables.rb) object responds to the most common enumerable methods.


# FAQ

Expand Down

0 comments on commit d0a1383

Please sign in to comment.