Skip to content

Commit

Permalink
Minor stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed May 29, 2017
1 parent 0ec0a81 commit 6915fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ Output:
#### EventMachine-style input

```ruby
require 'json/streamer'

# Get a JsonStreamer object that provides access to the parser
# but does not start processing immediately
streamer = Json::Streamer::JsonStreamer.new
Expand All @@ -147,9 +145,9 @@ end
Then later in your EventMachine handler:

```ruby
def receive_data(data)
def receive_data(data)
streamer.parser << data
end
end
```

Check the unit tests for more examples ([spec/streamer_spec.rb](spec/streamer_spec.rb)).
Expand Down
2 changes: 1 addition & 1 deletion spec/json/streamer/json_streamer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
end
end

context '1st level from input' do
context '1st level from EventMachine style input' do
it 'should yield objects within JSON object' do

hash = {'object1':@example_hash, 'object2':@example_hash, 'object3':@example_hash}
Expand Down

0 comments on commit 6915fc8

Please sign in to comment.