summaryrefslogtreecommitdiff
path: root/lib/net/protocol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r--lib/net/protocol.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index df38725cb9f..bdb60e158dc 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -424,7 +424,7 @@ module Net
end
def inspect
- "#<#{type} #{closed? ? 'closed' : 'opened'}>"
+ "#<#{self.class} #{closed? ? 'closed' : 'opened'}>"
end
###
@@ -584,7 +584,7 @@ module Net
public
def write_message( src )
- D_off "writing text from #{src.type}"
+ D_off "writing text from #{src.class}"
wsize = using_each_crlf_line {
wpend_in src
@@ -723,7 +723,7 @@ module Net
end
def inspect
- "#<#{type} socket=#{@socket.inspect}>"
+ "#<#{self.class} socket=#{@socket.inspect}>"
end
def write( str )
@@ -755,7 +755,7 @@ module Net
end
def inspect
- "#<#{type}>"
+ "#<#{self.class}>"
end
def <<( str )