Class: ArticleFixtureGen::Data::ArticleContent
- Inherits:
-
Object
- Object
- ArticleFixtureGen::Data::ArticleContent
- Defined in:
- lib/article_fixture_gen/data/article_content.rb
Overview
Details of generated Article and internal details thereof.
Instance Method Summary collapse
-
#initialize(config:, ¶s_builder) ⇒ ArticleContent
constructor
A new instance of ArticleContent.
- #to_s ⇒ Object
Constructor Details
#initialize(config:, ¶s_builder) ⇒ ArticleContent
Returns a new instance of ArticleContent.
9 10 11 12 13 14 |
# File 'lib/article_fixture_gen/data/article_content.rb', line 9 def initialize(config:, ¶s_builder) @config = config @paras_builder = paras_builder @str = nil self end |
Instance Method Details
#to_s ⇒ Object
16 17 18 19 |
# File 'lib/article_fixture_gen/data/article_content.rb', line 16 def to_s return @str if @str @str = Internals.wrap_content(content) end |