Sha256: 05266e1b8db86dcd0a928fb6371e30354707b5aa93db964141e3c1b520e83fa9

Contents?: true

Size: 195 Bytes

Versions: 35

Compression:

Stored size: 195 Bytes

Contents

class File
  def read_fix_nl
    result = ""
    self.each_line do |line|
      chomped = line.chomp
      result << chomped
      result << "\n" if chomped != line
    end
    result
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
damagecontrol-0.5.0.1392 test/damagecontrol/file_ext.rb
damagecontrol-0.5.0.1391 test/damagecontrol/file_ext.rb
damagecontrol-0.5.0.1393 test/damagecontrol/file_ext.rb
damagecontrol-0.5.0.1404 test/damagecontrol/file_ext.rb
damagecontrol-0.5.0 test/damagecontrol/file_ext.rb
rscm-0.1.0.999 test/rscm/file_ext.rb
rscm-0.1.0.1338 test/rscm/file_ext.rb
rscm-0.1.0.1337 test/rscm/file_ext.rb
rscm-0.3.2 test/rscm/file_ext.rb
rscm-0.2.1.1404 test/rscm/file_ext.rb
rscm-0.3.0 test/rscm/file_ext.rb
rscm-0.3.10 test/rscm/file_ext.rb
rscm-0.2.0 test/rscm/file_ext.rb
rscm-0.3.12 test/rscm/file_ext.rb
rscm-0.3.14 test/rscm/file_ext.rb
rscm-0.3.15 test/rscm/file_ext.rb
rscm-0.3.1 test/rscm/file_ext.rb
rscm-0.1.0 test/rscm/file_ext.rb
rscm-0.3.11 test/rscm/file_ext.rb
rscm-0.3.13 test/rscm/file_ext.rb