class Tlog::Output

Attributes

stderr[RW]
stdout[RW]

Public Class Methods

new(stdout,stderr) click to toggle source
# File lib/tlog/output.rb, line 7
def initialize(stdout,stderr)
  @stdout = stdout
  @stderr = stderr
end

Public Instance Methods

error(err) click to toggle source
# File lib/tlog/output.rb, line 12
def error(err)
  @stderr.puts err
end
line(out) click to toggle source
# File lib/tlog/output.rb, line 16
def line(out)
  @stdout.puts out
  true
end
line_blue(out) click to toggle source
# File lib/tlog/output.rb, line 29
def line_blue(out)
  @stdout.puts out.blue
end
line_red(out) click to toggle source
# File lib/tlog/output.rb, line 25
def line_red(out)
  @stdout.puts out.red
end
line_yellow(out) click to toggle source
# File lib/tlog/output.rb, line 21
def line_yellow(out)
  @stdout.puts out.yellow
end