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 135
135:   def initialize(string = '')
136:     super "TempIO"
137:     binmode
138:     write string
139:     rewind
140:   end

Public Instance methods

[Source]

     # File lib/rubygems/test_utilities.rb, line 142
142:   def string
143:     flush
144:     Gem.read_binary path
145:   end

[Validate]