Skip to content

Commit

Permalink
Implements the StringIO#{read_nonblock, write_nonblock}.
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed May 10, 2011
1 parent 99397ec commit a9f0855
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stringio.rb
Expand Up @@ -162,6 +162,7 @@ def sysread(length = nil, buffer = String.new)
val
end
alias_method :readpartial, :sysread
alias_method :read_nonblock, :sysread

# strio.readbyte -> fixnum
#
Expand Down Expand Up @@ -518,6 +519,7 @@ def write(str)
str.length
end
alias_method :syswrite, :write
alias_method :write_nonblock, :write

# strio << obj -> strio
#
Expand Down

0 comments on commit a9f0855

Please sign in to comment.