Class: Decidim::ContentParsers::DummyFooParser

Inherits:
BaseParser
  • Object
show all
Defined in:
decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb

Constant Summary

Constants inherited from BaseParser

BaseParser::Metadata

Instance Attribute Summary

Attributes inherited from BaseParser

#content, #context

Instance Method Summary collapse

Methods inherited from BaseParser

#initialize

Methods included from Decidim::ContentProcessor::Common

#html_content?, #html_fragment

Constructor Details

This class inherits a constructor from Decidim::ContentParsers::BaseParser

Instance Method Details

#metadataObject



9
10
11
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 9

def 
  content.scan("foo").size
end

#rewriteObject



5
6
7
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 5

def rewrite
  content.gsub("foo", "%lorem%")
end