Sha256: c06854b2dfa8efa284bbe9869835811800623e1bcc69c00e3c9d8743440381df

Contents?: true

Size: 313 Bytes

Versions: 68

Compression:

Stored size: 313 Bytes

Contents

module Avo
  class ErrorManager
    class << self
      def build
        new
      end
    end

    attr_reader :errors

    alias_method :all, :errors

    def initialize
      @errors = []
    end

    def add(error)
      @errors << error
    end

    def has_errors?
      @errors.present?
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
avo-3.18.1.tw4 lib/avo/error_manager.rb
avo-3.18.1 lib/avo/error_manager.rb
avo-3.18.0.tw4 lib/avo/error_manager.rb
avo-3.18.0 lib/avo/error_manager.rb
avo-3.17.9.beta2 lib/avo/error_manager.rb
avo-3.17.9.beta1 lib/avo/error_manager.rb
avo-3.17.9.tw4 lib/avo/error_manager.rb
avo-3.17.9 lib/avo/error_manager.rb
avo-3.17.8.tw4 lib/avo/error_manager.rb
avo-3.17.8 lib/avo/error_manager.rb
avo-3.17.7 lib/avo/error_manager.rb
avo-3.17.6.tw4 lib/avo/error_manager.rb
avo-3.17.6 lib/avo/error_manager.rb
avo-3.17.5 lib/avo/error_manager.rb
avo-3.17.4 lib/avo/error_manager.rb
avo-3.17.3 lib/avo/error_manager.rb
avo-3.17.5.tw4 lib/avo/error_manager.rb
avo-3.17.4.tw4 lib/avo/error_manager.rb
avo-3.17.3.tw4 lib/avo/error_manager.rb
avo-3.17.2.tw4 lib/avo/error_manager.rb