Class: Duty::IO::CLI::Output
- Inherits:
-
Object
- Object
- Duty::IO::CLI::Output
- Defined in:
- lib/duty/io/cli.rb
Instance Method Summary collapse
- #error(*args) ⇒ Object
-
#initialize(stdout, stderr) ⇒ Output
constructor
A new instance of Output.
- #print(*args) ⇒ Object
Constructor Details
#initialize(stdout, stderr) ⇒ Output
Returns a new instance of Output.
49 50 51 52 |
# File 'lib/duty/io/cli.rb', line 49 def initialize(stdout, stderr) @stdout = stdout @stderr = stderr end |
Instance Method Details
#error(*args) ⇒ Object
58 59 60 |
# File 'lib/duty/io/cli.rb', line 58 def error(*args) stderr.puts(*args) end |
#print(*args) ⇒ Object
54 55 56 |
# File 'lib/duty/io/cli.rb', line 54 def print(*args) stdout.puts(*args) end |