Class: H8::Command::Console
Instance Method Summary collapse
- #debug(*args) ⇒ Object
- #error(*args) ⇒ Object
-
#initialize(out: STDOUT, err: STDERR) ⇒ Console
constructor
A new instance of Console.
- #log(*args) ⇒ Object
Constructor Details
#initialize(out: STDOUT, err: STDERR) ⇒ Console
Returns a new instance of Console.
117 118 119 |
# File 'lib/h8/command.rb', line 117 def initialize out: STDOUT, err: STDERR @out, @err = out, err end |
Instance Method Details
#debug(*args) ⇒ Object
121 122 123 |
# File 'lib/h8/command.rb', line 121 def debug *args @out.puts args.join(' ') end |
#error(*args) ⇒ Object
129 130 131 |
# File 'lib/h8/command.rb', line 129 def error *args @err.puts args.join(' ') end |
#log(*args) ⇒ Object
125 126 127 |
# File 'lib/h8/command.rb', line 125 def log *args debug *args end |