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.
-
#header_id_type ⇒ Object
option switch.
-
#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.
402 403 404 405 406 407 408 409 410 411 |
# File 'lib/bluefeather.rb', line 402 def initialize @urls, @titles, @html_blocks = {}, {}, {} @log = nil @footnotes, @found_footnote_ids, @warnings = {}, [], [] @headers = [] @block_transform_depth = 0 @header_id_type = HeaderIDType::MD5 @numbering = false @numbering_start_level = 2 end |
Instance Attribute Details
#block_transform_depth ⇒ Object
Returns the value of attribute block_transform_depth.
397 398 399 |
# File 'lib/bluefeather.rb', line 397 def block_transform_depth @block_transform_depth end |
#footnotes ⇒ Object
BlueFeather Extension
396 397 398 |
# File 'lib/bluefeather.rb', line 396 def footnotes @footnotes end |
#found_footnote_ids ⇒ Object
BlueFeather Extension
396 397 398 |
# File 'lib/bluefeather.rb', line 396 def found_footnote_ids @found_footnote_ids end |
#header_id_type ⇒ Object
option switch
398 399 400 |
# File 'lib/bluefeather.rb', line 398 def header_id_type @header_id_type end |
#headers ⇒ Object
Returns the value of attribute headers.
397 398 399 |
# File 'lib/bluefeather.rb', line 397 def headers @headers end |
#html_blocks ⇒ Object
from Original BlueCloth
393 394 395 |
# File 'lib/bluefeather.rb', line 393 def html_blocks @html_blocks end |
#log ⇒ Object
from Original BlueCloth
393 394 395 |
# File 'lib/bluefeather.rb', line 393 def log @log end |
#numbering ⇒ Object Also known as: numbering?
option switch
399 400 401 |
# File 'lib/bluefeather.rb', line 399 def numbering @numbering end |
#numbering_start_level ⇒ Object
option switch
399 400 401 |
# File 'lib/bluefeather.rb', line 399 def numbering_start_level @numbering_start_level end |
#titles ⇒ Object
from Original BlueCloth
393 394 395 |
# File 'lib/bluefeather.rb', line 393 def titles @titles end |
#urls ⇒ Object
from Original BlueCloth
393 394 395 |
# File 'lib/bluefeather.rb', line 393 def urls @urls end |
#warnings ⇒ Object
BlueFeather Extension
396 397 398 |
# File 'lib/bluefeather.rb', line 396 def warnings @warnings end |