Skip to content

Commit

Permalink
Adds description about callback constraint (Issue #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed Sep 29, 2017
1 parent 66c2285 commit f0d630b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ Or install it yourself as:

## Usage

Check the unit tests for more examples ([spec/streamer_spec.rb](spec/json/streamer/json_streamer_spec.rb)).

One `streamer` object handles one set of conditions. For multiple conditions create multiple streamers. For more details see [this discussion](https://github.com/thisismydesign/json-streamer/issues/9).

```ruby
require 'json/streamer'
```

### v1.2 (and above) API

Check the unit tests for more examples ([spec/streamer_spec.rb](spec/json/streamer/json_streamer_spec.rb)).

#### Passing IO upfront

```ruby
Expand Down

0 comments on commit f0d630b

Please sign in to comment.