Class: BlueCloth::Transform::RenderState

Inherits:
Struct
  • Object
show all
Defined in:
lib/bluecloth/transform.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

- (Object) html_blocks

Returns the value of attribute html_blocks

Returns:

  • (Object)

    the current value of html_blocks



77
78
79
# File 'lib/bluecloth/transform.rb', line 77

def html_blocks
  @html_blocks
end

- (Object) log

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



77
78
79
# File 'lib/bluecloth/transform.rb', line 77

def log
  @log
end

- (Object) titles

Returns the value of attribute titles

Returns:

  • (Object)

    the current value of titles



77
78
79
# File 'lib/bluecloth/transform.rb', line 77

def titles
  @titles
end

- (Object) urls

Returns the value of attribute urls

Returns:

  • (Object)

    the current value of urls



77
78
79
# File 'lib/bluecloth/transform.rb', line 77

def urls
  @urls
end