Class: BlueFeather::Parser::RenderState
- Inherits:
-
Object
- Object
- BlueFeather::Parser::RenderState
- Defined in:
- lib/bluefeather.rb
Overview
Rendering state class Keeps track of URLs, titles, and HTML blocks midway through a render. I prefer this to the globals of the Perl version because globals make me break out in hives. Or something.
Defined Under Namespace
Classes: Header
Instance Attribute Summary collapse
-
#block_transform_depth ⇒ Object
Returns the value of attribute block_transform_depth.
-
#footnotes ⇒ Object
BlueFeather Extension.
-
#found_footnote_ids ⇒ Object
BlueFeather Extension.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#html_blocks ⇒ Object
from Original BlueCloth.
-
#log ⇒ Object
from Original BlueCloth.
-
#numbering ⇒ Object
(also: #numbering?)
option switch.
-
#numbering_start_level ⇒ Object
option switch.
-
#titles ⇒ Object
from Original BlueCloth.
-
#urls ⇒ Object
from Original BlueCloth.
-
#warnings ⇒ Object
BlueFeather Extension.
Instance Method Summary collapse
-
#initialize ⇒ RenderState
constructor
A new instance of RenderState.
Constructor Details
#initialize ⇒ RenderState
Returns a new instance of RenderState.
358 359 360 361 362 363 364 365 366 |
# File 'lib/bluefeather.rb', line 358 def initialize @urls, @titles, @html_blocks = {}, {}, {} @log = nil @footnotes, @found_footnote_ids, @warnings = {}, [], [] @headers = [] @block_transform_depth = 0 @numbering = false @numbering_start_level = 2 end |
Instance Attribute Details
#block_transform_depth ⇒ Object
Returns the value of attribute block_transform_depth.
354 355 356 |
# File 'lib/bluefeather.rb', line 354 def block_transform_depth @block_transform_depth end |
#footnotes ⇒ Object
BlueFeather Extension
353 354 355 |
# File 'lib/bluefeather.rb', line 353 def footnotes @footnotes end |
#found_footnote_ids ⇒ Object
BlueFeather Extension
353 354 355 |
# File 'lib/bluefeather.rb', line 353 def found_footnote_ids @found_footnote_ids end |
#headers ⇒ Object
Returns the value of attribute headers.
354 355 356 |
# File 'lib/bluefeather.rb', line 354 def headers @headers end |
#html_blocks ⇒ Object
from Original BlueCloth
350 351 352 |
# File 'lib/bluefeather.rb', line 350 def html_blocks @html_blocks end |
#log ⇒ Object
from Original BlueCloth
350 351 352 |
# File 'lib/bluefeather.rb', line 350 def log @log end |
#numbering ⇒ Object Also known as: numbering?
option switch
355 356 357 |
# File 'lib/bluefeather.rb', line 355 def numbering @numbering end |
#numbering_start_level ⇒ Object
option switch
355 356 357 |
# File 'lib/bluefeather.rb', line 355 def numbering_start_level @numbering_start_level end |
#titles ⇒ Object
from Original BlueCloth
350 351 352 |
# File 'lib/bluefeather.rb', line 350 def titles @titles end |
#urls ⇒ Object
from Original BlueCloth
350 351 352 |
# File 'lib/bluefeather.rb', line 350 def urls @urls end |
#warnings ⇒ Object
BlueFeather Extension
353 354 355 |
# File 'lib/bluefeather.rb', line 353 def warnings @warnings end |