class Net::WriteAdapter
The writer adapter class
def <<(str)
def <<(str) write str self end
def initialize(writer)
def initialize(writer) @writer = writer end
def inspect
def inspect "#<#{self.class} writer=#{@writer.inspect}>" end
def printf(*args)
def printf(*args) write sprintf(*args) end
def puts(str = '')
def puts(str = '') write str.chomp("\n") + "\n" end
def write(str)
def write(str) @writer.call(str) end