README.rdoc in brianmario-yajl-ruby-0.5.12 vs README.rdoc in brianmario-yajl-ruby-0.6.0
- old
+ new
@@ -178,10 +178,10 @@
# Passing a block (like below) essentially tells the encoder to use that block
# as the callback normally assigned to _on_progress_.
#
# Send our MOTD and status
@encoder.encode(@motd) do |chunk|
- if chunk.nil?
+ if chunk.nil? # got our terminator, encoding is done
close_connection_after_writing
else
send_data(chunk)
end
end