Class
Class Methods
lib/rubygems/test_utilities.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/rubygems/test_utilities.rb, line 369
def initialize(string = '')
super "TempIO"
binmode
write string
rewind
end
Creates a new TempIO
that will be initialized to contain string
.
Instance Methods
#
lib/rubygems/test_utilities.rb
View on GitHub
# File tmp/rubies/ruby-2.4.10/lib/rubygems/test_utilities.rb, line 379
def string
flush
Gem.read_binary path
end
The content of the TempIO
as a String.