Sha256: 2ec6a5a95981d1ccbbbe63e321e1c70179293e532c2b98da9417529f44361f25
Contents?: true
Size: 564 Bytes
Versions: 37
Compression:
Stored size: 564 Bytes
Contents
# NOTE: Ruby 1.9 isn't fully supported yet. # There are some encoding handlers and some of the dependencies are not fully working yet. # One should wait for Ruby 2.0 for production use anyway. # Ruby 1.9 encoding defaults. # This is clearly not enough but a good start for fixing the encoding madness. Encoding.default_external = Encoding::BINARY Encoding.default_internal = Encoding::BINARY # Ruby 1.9 doesn't have String#each anymore. # This is a backwards-compatible work-around. class String def each self.split($/).each { |e| yield e } end end
Version data entries
37 entries across 37 versions & 2 rubygems