Class: HtmlConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/wee-pm/converter.rb

Direct Known Subclasses

PsHtmlConverter

Instance Method Summary collapse

Instance Method Details

#count_overlays(content) ⇒ Object



4
5
6
7
8
# File 'lib/wee-pm/converter.rb', line 4

def count_overlays(content)
  conv = converter()
  conv.count = true
  SlidesMarkup.new.convert(content, conv)
end

#render_annotations_on(r, annotations) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/wee-pm/converter.rb', line 20

def render_annotations_on(r, annotations)
  conv = converter()
  conv.count = false
  conv.show_number_of_overlays = nil
  @r = r
  r << SlidesMarkup.new.convert(annotations, conv)
end

#render_on(r, overlay, content) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/wee-pm/converter.rb', line 10

def render_on(r, overlay, content)
  conv = converter()
  conv.count = false
  conv.show_number_of_overlays = overlay
  if overlay > 0
    @r = r
    r << SlidesMarkup.new.convert(content, conv)
  end
end