Class: ContentParsers::DummyBarParser

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

Instance Method Summary collapse

Instance Method Details

#metadataObject



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

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

#rewriteObject



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

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