Sha256: 48d50a3c097bc10fdcb952a8c55c90c0897d4faa2badc5663578a614ddac43db

Contents?: true

Size: 246 Bytes

Versions: 10

Compression:

Stored size: 246 Bytes

Contents

$LOAD_PATH.unshift 'lib'
require 'ruco'

require 'tempfile'
class Tempfile
  def self.string_as_file(data)
    result = nil
    Tempfile.open('foo') do |f|
      f.print data
      f.close
      result = yield(f.path)
    end
    result
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruco-0.0.20 spec/spec_helper.rb
ruco-0.0.19 spec/spec_helper.rb
ruco-0.0.18 spec/spec_helper.rb
ruco-0.0.17 spec/spec_helper.rb
ruco-0.0.16 spec/spec_helper.rb
ruco-0.0.15 spec/spec_helper.rb
ruco-0.0.14 spec/spec_helper.rb
ruco-0.0.13 spec/spec_helper.rb
ruco-0.0.12 spec/spec_helper.rb
ruco-0.0.11 spec/spec_helper.rb