Skip to content

Instantly share code, notes, and snippets.

@PDegenPortnoy
Created March 9, 2014 00:17
Show Gist options
  • Save PDegenPortnoy/9441082 to your computer and use it in GitHub Desktop.
Save PDegenPortnoy/9441082 to your computer and use it in GitHub Desktop.
def flush
return if @buffer.length < @max_length # don't flush yet
# ... rest of logic
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment