Class: BlueCloth::RenderState

Inherits:
Struct
  • Object
show all
Defined in:
lib/bluecloth_tweaked.rb

Overview

Rendering state struct. 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.

Instance Attribute Summary collapse

Instance Attribute Details

#html_blocksObject

Returns the value of attribute html_blocks

Returns:

  • (Object)

    the current value of html_blocks



100
101
102
# File 'lib/bluecloth_tweaked.rb', line 100

def html_blocks
  @html_blocks
end

#logObject

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



100
101
102
# File 'lib/bluecloth_tweaked.rb', line 100

def log
  @log
end

#titlesObject

Returns the value of attribute titles

Returns:

  • (Object)

    the current value of titles



100
101
102
# File 'lib/bluecloth_tweaked.rb', line 100

def titles
  @titles
end

#urlsObject

Returns the value of attribute urls

Returns:

  • (Object)

    the current value of urls



100
101
102
# File 'lib/bluecloth_tweaked.rb', line 100

def urls
  @urls
end