Class: Decidim::ContentParsers::DummyFooParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Decidim::ContentParsers::DummyFooParser
- Defined in:
- decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb
Constant Summary
Constants inherited from BaseParser
Instance Attribute Summary
Attributes inherited from BaseParser
Instance Method Summary collapse
Methods inherited from BaseParser
Methods included from Decidim::ContentProcessor::Common
#html_content?, #html_fragment
Constructor Details
This class inherits a constructor from Decidim::ContentParsers::BaseParser
Instance Method Details
#metadata ⇒ Object
9 10 11 |
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 9 def content.scan("foo").size end |
#rewrite ⇒ Object
5 6 7 |
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 5 def rewrite content.gsub("foo", "%lorem%") end |