Class: Duty::IO::CLI::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/duty/io/cli.rb

Instance Method Summary collapse

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


54
55
56
# File 'lib/duty/io/cli.rb', line 54

def print(*args)
  stdout.puts(*args)
end