Class: CW::Print::ProgressPrint

Inherits:
Object
  • Object
show all
Defined in:
lib/cw/print.rb

Instance Method Summary collapse

Instance Method Details

#colourObject



10
11
12
# File 'lib/cw/print.rb', line 10

def colour
  :yellow
end

#flushObject



21
22
23
# File 'lib/cw/print.rb', line 21

def flush
  STDOUT.flush
end


14
15
16
# File 'lib/cw/print.rb', line 14

def print x
  STDOUT.print Paint[x, colour]
end

#puts(x) ⇒ Object



17
18
19
# File 'lib/cw/print.rb', line 17

def puts x
  STDOUT.puts  Paint[x, colour]
end

#tty?Boolean

Returns:



25
26
27
# File 'lib/cw/print.rb', line 25

def tty?
  true
end