Class: ArticleFixtureGen::Data::SmtpDecoratedMarkup
- Inherits:
-
Object
- Object
- ArticleFixtureGen::Data::SmtpDecoratedMarkup
- Defined in:
- lib/article_fixture_gen/data/smtp_decorated_markup.rb
Overview
Generate a copy of the specified base content with single marker-tag pairs inserted before random words in the content.
Parameters: ‘base_markup`: Must be a string representing a single HTML element with
child nodes, some containing text strings. The canonical
example is article-body markup presented as a containing
`div` with paragraphs and so on;
‘config`: A configuration-information object, which must respond to
the `:smtp_text` with a string, and *must* respond
to the `:smtp_count` with a non-negative integer.
Class Method Summary collapse
Class Method Details
.call(base_markup:, config:, param_builder: SmtpDecoratorParams) ⇒ Object
21 22 23 24 |
# File 'lib/article_fixture_gen/data/smtp_decorated_markup.rb', line 21 def self.call(base_markup:, config:, param_builder: SmtpDecoratorParams) params = param_builder.call(base_markup: base_markup, config: config) MtpDecoratedMarkup.call(params) end |