Sha256: f9231a0b45bc6e85f37091f52a5968e882d367603b06ce67f1946e80c87c744f
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
# encoding: utf-8 module Assertion # The exception to be raised when a assertion is applied to some data # before its `check` method has been implemented # # @api public # class NotImplementedError < ::NotImplementedError # @!scope class # @!method new(klass, name) # Creates an exception instance # # @param [Class] klass The class that should implement the instance method # @param [Symbol] name The name of the method to be implemented # # @return [Assertion::NotImplementedError] # @private def initialize(klass, name) super "#{klass.name}##{name} method not implemented" freeze end end # class NotImplementedError end # module Assertion
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assertion-0.0.1 | lib/assertion/exceptions/not_implemented_error.rb |