In Files

  • rubygems/test_utilities.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

TempIO

A StringIO duck-typed class that uses Tempfile instead of String as the backing store.

Public Class Methods

new(string = '') click to toggle source
 
               # File rubygems/test_utilities.rb, line 135
def initialize(string = '')
  super "TempIO"
  binmode
  write string
  rewind
end
            

Public Instance Methods

string() click to toggle source
 
               # File rubygems/test_utilities.rb, line 142
def string
  flush
  Gem.read_binary path
end