lib/backport/server/stdio.rb in backport-1.1.2 vs lib/backport/server/stdio.rb in backport-1.2.0
- old
+ new
@@ -3,18 +3,23 @@
# A Backport STDIO server.
#
class Stdio < Base
include Connectable
+ # @param input [IO]
+ # @param output [IO]
+ # @param adapter [Module, Class]
def initialize input: STDIN, output: STDOUT, adapter: Adapter
@in = input
@out = output
@out.binmode
@adapter = adapter
clients.push Client.new(input, output, adapter)
clients.last.add_observer self
end
+ # @param client [Client]
+ # @return [void]
def update client
client.tick
end
end
end