Class: Decidim::ContentProcessor::Result
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Decidim::ContentProcessor::Result
 
 
- Defined in:
 - lib/decidim/content_processor.rb
 
Overview
Class that represents the result of processing a text
Instance Attribute Summary collapse
- 
  
    
      #metadata  ⇒ Hash<Symbol, Metadata> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A hash where the keys are the parsers names, and the values are the Metadata object returned by the parser.
 - 
  
    
      #rewrite  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The rewritten content.
 
Instance Attribute Details
#metadata ⇒ Hash<Symbol, Metadata>
Returns a hash where the keys are the parsers names, and the values are the Metadata object returned by the parser.
      44  | 
    
      # File 'lib/decidim/content_processor.rb', line 44 Result = Struct.new(:rewrite, :metadata)  | 
  
#rewrite ⇒ String
Returns the rewritten content.
      44  | 
    
      # File 'lib/decidim/content_processor.rb', line 44 Result = Struct.new(:rewrite, :metadata)  |