Sha256: b31e8beb9816d37728839e65aae2a4f75fd4ff6047a7614e0be57a3115d7957b
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
# frozen_string_literal: true require_relative 'validation' module Codebreaker class BaseClass include Validator attr_accessor :errors def initialize @errors = [] end def handle_errors(text) @errors << text end def show_errors data = errors.flatten clear_errors data end def clear_errors @errors = [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems