Class: Decidim::ContentProcessor::Result

Inherits:
Struct
  • Object
show all
Defined in:
decidim-core/lib/decidim/content_processor.rb

Overview

Class that represents the result of processing a text

Instance Attribute Summary collapse

Instance Attribute Details

#metadataHash<Symbol, Metadata>

Returns a hash where the keys are the parsers names, and the values are the Metadata object returned by the parser.

Returns:

  • (Hash<Symbol, Metadata>)

    a hash where the keys are the parsers names, and the values are the Metadata object returned by the parser


44
# File 'decidim-core/lib/decidim/content_processor.rb', line 44

Result = Struct.new(:rewrite, :metadata)

#rewriteString

Returns the rewritten content.

Returns:

  • (String)

    the rewritten content


44
# File 'decidim-core/lib/decidim/content_processor.rb', line 44

Result = Struct.new(:rewrite, :metadata)