Sha256: 87f82be2c15092c395f030b626fbab4defa31f272e8f939f60d05c8b8d721bb3
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true module ArticleFixtureGen module Data # Builds an HTML marker tag pair, either a single MTP or a paired MTP; we # don't care at this level (the conventions for ID attributes distinguishing # one from the other are applied at a higher level). class MarkerTagPair def self.call(id_string:) Internals.to_s(id_string) end FORMAT_STR = %(<a href="" id="%s"></a>) private_constant :FORMAT_STR # Stateless methods. module Internals def self.to_s(id_attrib) format FORMAT_STR, id_attrib end end private_constant :Internals end # class ArticleFixtureGen::Data::MarkerTagPair end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
article_fixture_gen-0.1.2 | lib/article_fixture_gen/data/marker_tag_pair.rb |
article_fixture_gen-0.1.1 | lib/article_fixture_gen/data/marker_tag_pair.rb |