Module: PgVerify::Model::Validation::EmptyStateSetValidation

Defined in:
lib/pg-verify/model/validation/empty_state_set_validation.rb

Class Method Summary collapse

Class Method Details

.validate(model) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/pg-verify/model/validation/empty_state_set_validation.rb', line 7

def self.validate(model)
    errors = model.components.map { |cmp|
        next if cmp.states.length > 0
        EmptyStateSetError.new(cmp)
    }.compact
    return errors
end