Module: Rascal::IOHelper
- Included in:
- Docker::Container, Docker::Volume::Base
- Defined in:
- lib/rascal/io_helper.rb
Class Attribute Summary collapse
-
.stderr ⇒ Object
Returns the value of attribute stderr.
-
.stdin ⇒ Object
Returns the value of attribute stdin.
-
.stdout ⇒ Object
Returns the value of attribute stdout.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.stderr ⇒ Object
Returns the value of attribute stderr.
4 5 6 |
# File 'lib/rascal/io_helper.rb', line 4 def stderr @stderr end |
.stdin ⇒ Object
Returns the value of attribute stdin.
4 5 6 |
# File 'lib/rascal/io_helper.rb', line 4 def stdin @stdin end |
.stdout ⇒ Object
Returns the value of attribute stdout.
4 5 6 |
# File 'lib/rascal/io_helper.rb', line 4 def stdout @stdout end |
Class Method Details
.setup ⇒ Object
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() stdout.puts() end |
#stderr ⇒ Object
22 23 24 |
# File 'lib/rascal/io_helper.rb', line 22 def stderr IOHelper.stderr end |
#stdin ⇒ Object
26 27 28 |
# File 'lib/rascal/io_helper.rb', line 26 def stdin IOHelper.stdin end |
#stdout ⇒ Object
18 19 20 |
# File 'lib/rascal/io_helper.rb', line 18 def stdout IOHelper.stdout end |