Class: Hydra::Stdio

Inherits:
Object
  • Object
show all
Includes:
MessagingIO
Defined in:
lib/hydra/stdio.rb

Overview

Read and write via stdout and stdin.

Instance Method Summary collapse

Methods included from MessagingIO

#close, #gets, #write

Constructor Details

#initializeStdio

Initialize new Stdio


8
9
10
11
12
13
# File 'lib/hydra/stdio.rb', line 8

def initialize()
  @reader = $stdin
  @writer = $stdout
  @reader.sync = true
  @writer.sync = true
end