StringIO#each_byte now checks the current position against the length of the containe...
commita6b85351d18f26b0ba7d14201bfe3fff008e3d84
authorJanico Greifenberg <jgre@jgre.org>
Tue, 22 Jul 2008 17:55:45 +0000 (22 19:55 +0200)
committerFederico Builes <federico.builes@gmail.com>
Fri, 25 Jul 2008 01:11:20 +0000 (24 20:11 -0500)
treeb5b36164f2a060bed1392a6f88b443db43720a02
parentc7147df3c30b2f049f5f9dfc75c0f013e9ff113b
StringIO#each_byte now checks the current position against the length of the contained string before delegating to String#each_byte.

* This avoids an error when calling the method when the current position is out of
  bounds.
lib/stringio.rb