Class: ArticleFixtureGen::Data::MarkerArray
- Inherits:
-
Object
- Object
- ArticleFixtureGen::Data::MarkerArray
- Defined in:
- lib/article_fixture_gen/data/marker_array.rb
Overview
Builds an array of marker-tag ID strings. FIXME: This should be ‘BuildMarkerArray` or similar.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(attributes:) ⇒ Object
10 11 12 |
# File 'lib/article_fixture_gen/data/marker_array.rb', line 10 def self.call(attributes:) new(attributes).call end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 |
# File 'lib/article_fixture_gen/data/marker_array.rb', line 14 def call @attributes.map do |attrib| mtp = MarkerTagPair.call id_string: attrib.id_string NodeFromMarkup.call mtp end end |