Class
Class Methods
lib/rubygems/test_utilities.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rubygems/test_utilities.rb, line 365
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.7.6/lib/rubygems/test_utilities.rb, line 375
def string
flush
Gem.read_binary path
end