IgorShkidchenko/rg_codebreaker

View on GitHub
lib/app/entities/navigator.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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