Class: Decidim::ContentParsers::DummyBarParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Decidim::ContentParsers::DummyBarParser
- 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
25 26 27 |
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 25 def content.scan("bar").size end |
#rewrite ⇒ Object
21 22 23 |
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 21 def rewrite content.gsub("bar", "*ipsum*") end |