Class: BlueFeather::Parser::RenderState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeRenderState

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_depthObject

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

#footnotesObject

BlueFeather Extension



353
354
355
# File 'lib/bluefeather.rb', line 353

def footnotes
  @footnotes
end

#found_footnote_idsObject

BlueFeather Extension



353
354
355
# File 'lib/bluefeather.rb', line 353

def found_footnote_ids
  @found_footnote_ids
end

#headersObject

Returns the value of attribute headers.



354
355
356
# File 'lib/bluefeather.rb', line 354

def headers
  @headers
end

#html_blocksObject

from Original BlueCloth



350
351
352
# File 'lib/bluefeather.rb', line 350

def html_blocks
  @html_blocks
end

#logObject

from Original BlueCloth



350
351
352
# File 'lib/bluefeather.rb', line 350

def log
  @log
end

#numberingObject Also known as: numbering?

option switch



355
356
357
# File 'lib/bluefeather.rb', line 355

def numbering
  @numbering
end

#numbering_start_levelObject

option switch



355
356
357
# File 'lib/bluefeather.rb', line 355

def numbering_start_level
  @numbering_start_level
end

#titlesObject

from Original BlueCloth



350
351
352
# File 'lib/bluefeather.rb', line 350

def titles
  @titles
end

#urlsObject

from Original BlueCloth



350
351
352
# File 'lib/bluefeather.rb', line 350

def urls
  @urls
end

#warningsObject

BlueFeather Extension



353
354
355
# File 'lib/bluefeather.rb', line 353

def warnings
  @warnings
end