Sha256: ff20226521dde0e6e4f4420c38854055ffb94460b7bc798cba78952c4ee25772
Contents?: true
Size: 720 Bytes
Versions: 10
Compression:
Stored size: 720 Bytes
Contents
# typed: strict module CodeOwnership module Validator extend T::Sig extend T::Helpers interface! sig { abstract.params(files: T::Array[String], autocorrect: T::Boolean, stage_changes: T::Boolean).returns(T::Array[String]) } def validation_errors(files:, autocorrect: true, stage_changes: true) end class << self extend T::Sig sig { params(base: T::Class[Validator]).void } def included(base) @validators ||= T.let(@validators, T.nilable(T::Array[T::Class[Validator]])) @validators ||= [] @validators << base end sig { returns(T::Array[Validator]) } def all (@validators || []).map(&:new) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems