Module: FeatureMap::Validator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



12
13
14
# File 'lib/feature_map/validator.rb', line 12

def all
  (@validators || []).map(&:new)
end

.included(base) ⇒ Object



7
8
9
10
# File 'lib/feature_map/validator.rb', line 7

def included(base)
  @validators ||= []
  @validators << base
end

Instance Method Details

#validation_errors(files:, autocorrect: true, stage_changes: true) ⇒ Object



4
# File 'lib/feature_map/validator.rb', line 4

def validation_errors(files:, autocorrect: true, stage_changes: true); end