Class: CW::Print::ProgressPrint
- Inherits:
-
Object
- Object
- CW::Print::ProgressPrint
- Defined in:
- lib/cw/print.rb
Instance Method Summary collapse
Instance Method Details
#colour ⇒ Object
10 11 12 |
# File 'lib/cw/print.rb', line 10 def colour :yellow end |
#flush ⇒ Object
21 22 23 |
# File 'lib/cw/print.rb', line 21 def flush STDOUT.flush end |
#print(x) ⇒ Object
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
25 26 27 |
# File 'lib/cw/print.rb', line 25 def tty? true end |