Class HTML::Pipeline::BodyContent
In: lib/html/pipeline/body_content.rb
Parent: Object

Public: Runs a String of content through an HTML processing pipeline, providing easy access to a generated DocumentFragment.

Methods

document   new   output   result  

Attributes

result  [R] 

Public Class methods

Public: Initialize a BodyContent.

body - A String body. context - A Hash of context options for the filters. pipeline - A HTML::Pipeline object with one or more Filters.

Public Instance methods

Public: Parses the output into a DocumentFragment.

Returns a DocumentFragment.

Public: Gets the updated body from the Pipeline result.

Returns a String or DocumentFragment.

Public: Gets the memoized result of the body content as it passed through the Pipeline.

Returns a Hash, or something similar as defined by @pipeline.result_class.

[Validate]