Class: SlidesHtml

Inherits:
ExtendedHtml show all
Defined in:
lib/wee-pm/slideshtml.rb

Instance Attribute Summary collapse

Attributes inherited from ExtendedHtml

#block_processor

Instance Method Summary collapse

Methods inherited from ExtendedHtml

#handle_special_HYPERLINK, #handle_special_RUBYTALK, #handle_special_TIDYLINK

Instance Attribute Details

#countObject

Returns the value of attribute count.



141
142
143
# File 'lib/wee-pm/slideshtml.rb', line 141

def count
  @count
end

#show_number_of_overlaysObject

Returns the value of attribute show_number_of_overlays.



140
141
142
# File 'lib/wee-pm/slideshtml.rb', line 140

def show_number_of_overlays
  @show_number_of_overlays
end

Instance Method Details

#accept_heading(am, fragment) ⇒ Object



190
191
192
193
# File 'lib/wee-pm/slideshtml.rb', line 190

def accept_heading(am, fragment)
  return if @done; overlay_added
  super
end

#accept_list_end(am, fragment) ⇒ Object



180
181
182
183
# File 'lib/wee-pm/slideshtml.rb', line 180

def accept_list_end(am, fragment)
  return if @done and @nesting == 0; @nesting -= 1
  super
end

#accept_list_item(am, fragment) ⇒ Object



185
186
187
188
# File 'lib/wee-pm/slideshtml.rb', line 185

def accept_list_item(am, fragment)
  return if @done; overlay_added
  super
end

#accept_list_start(am, fragment) ⇒ Object



175
176
177
178
# File 'lib/wee-pm/slideshtml.rb', line 175

def accept_list_start(am, fragment)
  return if @done; @nesting += 1
  super
end

#accept_paragraph(am, fragment) ⇒ Object



158
159
160
161
162
# File 'lib/wee-pm/slideshtml.rb', line 158

def accept_paragraph(am, fragment)
  return if @done; overlay_added
  return if @count
  super
end

#accept_rule(am, fragment) ⇒ Object



170
171
172
173
# File 'lib/wee-pm/slideshtml.rb', line 170

def accept_rule(am, fragment)
  return if @done; overlay_added
  super
end

#accept_verbatim(am, fragment) ⇒ Object



164
165
166
167
168
# File 'lib/wee-pm/slideshtml.rb', line 164

def accept_verbatim(am, fragment)
  return if @done; overlay_added
  return if @count
  super
end

#end_acceptingObject



150
151
152
153
154
155
156
# File 'lib/wee-pm/slideshtml.rb', line 150

def end_accepting
  if @count
    @overlays_shown
  else
    super
  end
end

#start_acceptingObject



143
144
145
146
147
148
# File 'lib/wee-pm/slideshtml.rb', line 143

def start_accepting
  super
  @overlays_shown = 0
  @nesting = 0  
  @done = false
end