Module: Fuzz::Console
- Extended by:
- Screen::ColorizeMethods
- Defined in:
- lib/fuzz/console.rb
Class Method Summary collapse
- .colorizer_include ⇒ Object
- .display_break ⇒ Object
- .display_hline(len = nil) ⇒ Object
- .error_print(*args) ⇒ Object
- .error_println(*args) ⇒ Object
- .print(*args) ⇒ Object
- .println(*args) ⇒ Object
- .screen ⇒ Object
Methods included from Screen::ColorizeMethods
Class Method Details
.colorizer_include ⇒ Object
38 39 40 |
# File 'lib/fuzz/console.rb', line 38 def self.colorizer_include Screen::ColorizeMethods end |
.display_break ⇒ Object
42 43 44 |
# File 'lib/fuzz/console.rb', line 42 def self.display_break println("\n") end |
.display_hline(len = nil) ⇒ Object
46 47 48 |
# File 'lib/fuzz/console.rb', line 46 def self.display_hline(len = nil) println("#{'-' * (len || [80, (screen.output_cols / 5 * 4)].min)}\n") end |
.error_print(*args) ⇒ Object
30 31 32 |
# File 'lib/fuzz/console.rb', line 30 def self.error_print(*args) screen.error_print(*args) end |
.error_println(*args) ⇒ Object
34 35 36 |
# File 'lib/fuzz/console.rb', line 34 def self.error_println(*args) screen.error_println(*args) end |
.print(*args) ⇒ Object
22 23 24 |
# File 'lib/fuzz/console.rb', line 22 def self.print(*args) screen.print(*args) end |
.println(*args) ⇒ Object
26 27 28 |
# File 'lib/fuzz/console.rb', line 26 def self.println(*args) screen.println(*args) end |
.screen ⇒ Object
16 17 18 |
# File 'lib/fuzz/console.rb', line 16 def screen @screen ||= Screen.new(Fuzz.[:output] || $stdout, $stdin) end |