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