Class: Decidim::ContentParsers::DummyBarParser

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

Constructor Details

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

Instance Method Details

#metadataObject


25
26
27
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 25

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

#rewriteObject


21
22
23
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 21

def rewrite
  content.gsub("bar", "*ipsum*")
end