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