Class: Presentify::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/presentify/printer.rb

Instance Method Summary collapse

Constructor Details

#initializePrinter

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(slide)
  load_up slide do
    print_title
    @demo_thread = Thread.new do
      eval slide.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(slide)
  load_up slide do
    print_title
    print_code
  end
end