Sha256: 88b00b5a1130d55fd3199e910abe2409beee14579b46dfc886cbde66a9693488

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

class File2String < String
  
  def initialize(file)
    content = ''
    f = File.open(file, "r")
    f.each_line { |line|
      content += line
    }
    f.close
    super(content)
  end

end

$LOAD_PATH << Pathname(__FILE__).dirname.parent.expand_path + 'lib'
require 'slf4r'

Dir.mkdir(Pathname(__FILE__).dirname.parent.expand_path + 'tmp') unless File.exists?('tmp')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slf4r-0.3.0 spec/spec_helper.rb
slf4r-0.2.0 spec/spec_helper.rb