Sha256: 726390d91862aeb70a7a02489cf5ae459904be233a999f083933e2488184447f
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true module AnnotateRb module ModelAnnotator module IndexAnnotation class Annotation HEADER_TEXT = "Indexes" def initialize(indexes) @indexes = indexes end def body [ Components::BlankCommentLine.new, Components::Header.new(HEADER_TEXT), Components::BlankCommentLine.new, *@indexes ] end def to_markdown body.map(&:to_markdown).join("\n") end def to_default body.map(&:to_default).join("\n") end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems