The writer adapter class
# File ruby-3.1.2/lib/net/protocol.rb, line 464 def <<(str) write str self end
# File ruby-3.1.2/lib/net/protocol.rb, line 454 def inspect "#<#{self.class} writer=#{@writer.inspect}>" end
# File ruby-3.1.2/lib/net/protocol.rb, line 473 def printf(*args) write sprintf(*args) end
# File ruby-3.1.2/lib/net/protocol.rb, line 469 def puts(str = '') write str.chomp("\n") + "\n" end
# File ruby-3.1.2/lib/net/protocol.rb, line 458 def write(str) @writer.call(str) end