Sha256: de78fa74d3acf4d756ec3586f832d7e4c19255114d3d2f565416317a42945bad

Contents?: true

Size: 622 Bytes

Versions: 16

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

module Unparser
  class Anima
    # Abstract base class for anima errors
    class Error < RuntimeError
      FORMAT = '%s attributes missing: %s, unknown: %s'.freeze
      private_constant(*constants(false))

      # Initialize object
      #
      # @param [Class] klass
      #   the class being initialized
      # @param [Enumerable<Symbol>] missing
      # @param [Enumerable<Symbol>] unknown
      #
      # @return [undefined]
      def initialize(klass, missing, unknown)
        super(format(FORMAT, klass, missing, unknown))
      end
    end # Error
  end # Anima
end # Unparser

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
unparser-0.6.15 lib/unparser/anima/error.rb
unparser-0.6.14 lib/unparser/anima/error.rb
unparser-0.6.13 lib/unparser/anima/error.rb
unparser-0.6.12 lib/unparser/anima/error.rb
unparser-0.6.10 lib/unparser/anima/error.rb
unparser-0.6.9 lib/unparser/anima/error.rb
unparser-0.6.8 lib/unparser/anima/error.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/unparser-0.6.7/lib/unparser/anima/error.rb
unparser-0.6.7 lib/unparser/anima/error.rb
unparser-0.6.6 lib/unparser/anima/error.rb
unparser-0.6.5 lib/unparser/anima/error.rb
unparser-0.6.4 lib/unparser/anima/error.rb
unparser-0.6.3 lib/unparser/anima/error.rb
unparser-0.6.2 lib/unparser/anima/error.rb
unparser-0.6.1 lib/unparser/anima/error.rb
unparser-0.6.0 lib/unparser/anima/error.rb