Sha256: eaed082a1b2f56bb530aef9a23a60eddb389b8c371db2c5c41ca4d5bfd07f864
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 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 require 'rubygems' $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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slf4r-0.4.2 | spec/spec_helper.rb |
slf4r-0.4.1 | spec/spec_helper.rb |
slf4r-0.4.0 | spec/spec_helper.rb |
slf4r-0.3.3 | spec/spec_helper.rb |