Class: Presentify::Printer
- Inherits:
-
Object
- Object
- Presentify::Printer
- Defined in:
- lib/presentify/printer.rb
Instance Method Summary collapse
- #demo(slide) ⇒ Object
-
#initialize ⇒ Printer
constructor
A new instance of Printer.
- #show(slide) ⇒ Object
Constructor Details
#initialize ⇒ Printer
Returns a new instance of Printer.
3 4 5 6 |
# File 'lib/presentify/printer.rb', line 3 def initialize @screen = Screen.new @colorifer = Colorifer.new end |
Instance Method Details
#demo(slide) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/presentify/printer.rb', line 15 def demo() load_up do print_title @demo_thread = Thread.new do eval .code end @demo_thread.join(0.01) end end |
#show(slide) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/presentify/printer.rb', line 8 def show() load_up do print_title print_code end end |