Class: Decidim::ContentParsers::DummyFooParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- Decidim::ContentParsers::DummyFooParser
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
Instance Method Details
9
10
11
|
# File 'decidim-dev/lib/decidim/dev/test/rspec_support/content_processing.rb', line 9
def metadata
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
|