mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* lib/rubygems: Update RubyGems to master 0886307. This commit
improves documentation and should bring ruby above 75% documented on rubyci. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8552f7aa68
commit
3f15d35f83
13 changed files with 306 additions and 54 deletions
|
@ -168,6 +168,10 @@ end
|
|||
# This class was added to flush out problems in Rubinius' IO implementation.
|
||||
|
||||
class TempIO < Tempfile
|
||||
|
||||
##
|
||||
# Creates a new TempIO that will be initialized to contain +string+.
|
||||
|
||||
def initialize(string = '')
|
||||
super "TempIO"
|
||||
binmode
|
||||
|
@ -175,6 +179,9 @@ class TempIO < Tempfile
|
|||
rewind
|
||||
end
|
||||
|
||||
##
|
||||
# The content of the TempIO as a String.
|
||||
|
||||
def string
|
||||
flush
|
||||
Gem.read_binary path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue