Sha256: 0a3ae16f2fc43cbefd921e718c2c92fe17ae845fa5b286294da6f34f3f315dd6

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module Codebreaker
  class ValidatableEntity
    include Validator

    def initialize
      @errors = []
    end

    def validate
      raise NotImplementedError
    end

    def valid?
      validate
      @errors.empty?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codebreaker_Shkidchenko-1.3.0 lib/app/entities/validatable_entity.rb
codebreaker_Shkidchenko-0.2.0 lib/app/entities/validatable_entity.rb
codebreaker_Shkidchenko-0.1.0 lib/app/entities/validatable_entity.rb