Sha256: a5b0f94139e5bd217fa71531e2c5f9825c8be32d01d9ad453c723dcbd18b7df2

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

require 'active_support/core_ext/string/output_safety'
require 'action_view'

module BetterHtml
  class InterpolatorError < RuntimeError; end
  class DontInterpolateHere < InterpolatorError; end
  class UnsafeHtmlError < InterpolatorError; end
  class HtmlError < RuntimeError; end

  class Errors
    delegate :[], :each, :size, :first,
      :empty?, :any?, :present?, to: :@errors

    def initialize
      @errors = []
    end

    def add(error)
      @errors << error
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
better_html-1.0.1 lib/better_html/errors.rb
better_html-1.0.0 lib/better_html/errors.rb
better_html-0.0.12 lib/better_html/errors.rb
better_html-0.0.11 lib/better_html/errors.rb
better_html-0.0.10 lib/better_html/errors.rb
better_html-0.0.9 lib/better_html/errors.rb
better_html-0.0.8 lib/better_html/errors.rb
better_html-0.0.7 lib/better_html/errors.rb
better_html-0.0.5 lib/better_html/errors.rb
better_html-0.0.4 lib/better_html/errors.rb
better_html-0.0.3 lib/better_html/errors.rb