Class TempIO
In: lib/rubygems/test_utilities.rb
Parent: Tempfile

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

Methods

new   string  

Public Class methods

[Source]

     # File lib/rubygems/test_utilities.rb, line 145
145:   def initialize(string = '')
146:     super "TempIO"
147:     binmode
148:     write string
149:     rewind
150:   end

Public Instance methods

[Source]

     # File lib/rubygems/test_utilities.rb, line 152
152:   def string
153:     flush
154:     Gem.read_binary path
155:   end

[Validate]