# frozen_string_literal: true
module Decidim
class ContentParsers::DummyFooParser < ContentParsers::BaseParser
def rewrite
content.gsub("foo", "*lorem*")
end
def metadata
content.scan("foo").size
end
end
class ContentRenderers::DummyFooRenderer < ContentRenderers::BaseRenderer
def render
content.gsub("*lorem*", "neque dicta enim quasi")
end
end
class ContentParsers::DummyBarParser < ContentParsers::BaseParser
def rewrite
content.gsub("bar", "*ipsum*")
end
def metadata
content.scan("bar").size
end
end
class ContentRenderers::DummyBarRenderer < ContentRenderers::BaseRenderer
def render
content.gsub("*ipsum*", "illo qui voluptas")
end
end
end