Sha256: b66810dafcd9bc8141d536ea3840355d3cb67169cd542c7cf78b8778689e82e9
Contents?: true
Size: 672 Bytes
Versions: 4
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true module AnnotateRb module ModelAnnotator module CheckConstraintAnnotation class Annotation HEADER_TEXT = "Check Constraints" def initialize(constraints) @constraints = constraints end def body [ Components::BlankCommentLine.new, Components::Header.new(HEADER_TEXT), Components::BlankCommentLine.new, *@constraints ] 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