Module: Rascal::IOHelper

Included in:
Docker::Container, Docker::Volume::Base
Defined in:
lib/rascal/io_helper.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.stderrObject

Returns the value of attribute stderr.



4
5
6
# File 'lib/rascal/io_helper.rb', line 4

def stderr
  @stderr
end

.stdinObject

Returns the value of attribute stdin.



4
5
6
# File 'lib/rascal/io_helper.rb', line 4

def stdin
  @stdin
end

.stdoutObject

Returns the value of attribute stdout.



4
5
6
# File 'lib/rascal/io_helper.rb', line 4

def stdout
  @stdout
end

Class Method Details

.setupObject



6
7
8
9
10
# File 'lib/rascal/io_helper.rb', line 6

def setup
  @stdout = $stdout
  @stderr = $stderr
  @stdin = $stdin
end

Instance Method Details

#say(message) ⇒ Object



14
15
16
# File 'lib/rascal/io_helper.rb', line 14

def say(message)
  stdout.puts(message)
end

#stderrObject



22
23
24
# File 'lib/rascal/io_helper.rb', line 22

def stderr
  IOHelper.stderr
end

#stdinObject



26
27
28
# File 'lib/rascal/io_helper.rb', line 26

def stdin
  IOHelper.stdin
end

#stdoutObject



18
19
20
# File 'lib/rascal/io_helper.rb', line 18

def stdout
  IOHelper.stdout
end