Sha256: 9eb8696066980401320771a55864f9fa759f496b9f23f3f7672f75ae565e0d37

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

module Codebreaker
  class Navigator < ValidatableEntity
    attr_reader :input, :errors

    def initialize(input)
      super()
      @input = input
    end

    def validate
      @errors << I18n.t('invalid.include_error') unless check_include?(@input, Console::COMMANDS.values)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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