Add Buffer.logLines()

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-22 18:58:11 -07:00
parent 9afc12b05c
commit 13416bd6f2

View File

@@ -242,4 +242,9 @@ class Buffer
backwardsScanInRange: (regex, range, iterator) ->
@scanInRange regex, range, iterator, true
logLines: (start=0, end=@getLastRow())->
for row in [start..end]
line = @lineForRow(row)
console.log row, line, line.length
_.extend(Buffer.prototype, EventEmitter)