Skip to content

Commit

Permalink
Reference IO::Buffer from the toplevel namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Arcieri committed Aug 23, 2009
1 parent a48adc4 commit a73160e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rev/http_client.rb
Expand Up @@ -145,7 +145,7 @@ def initialize(socket)
@parser_nbytes = 0

@state = :response_header
@data = IO::Buffer.new
@data = ::IO::Buffer.new

@response_header = HttpResponseHeader.new
@chunk_header = HttpChunkHeader.new
Expand Down
2 changes: 1 addition & 1 deletion lib/rev/io.rb
Expand Up @@ -21,7 +21,7 @@ class IO

def initialize(io)
@_io = io
@_write_buffer ||= IO::Buffer.new
@_write_buffer ||= ::IO::Buffer.new
@_read_watcher = Watcher.new(io, self, :r)
@_write_watcher = Watcher.new(io, self, :w)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rev/socket.rb
Expand Up @@ -123,7 +123,7 @@ def self.connect(addr, port, *args)

# Called by precreate during asyncronous DNS resolution
def preinitialize(addr, port, *args)
@_write_buffer = IO::Buffer.new # allow for writing BEFORE the DNS has resolved
@_write_buffer = ::IO::Buffer.new # allow for writing BEFORE the DNS has resolved
@remote_host, @remote_addr, @remote_port = addr, addr, port
@_resolver = TCPConnectResolver.new(self, addr, port, *args)
end
Expand Down

0 comments on commit a73160e

Please sign in to comment.