Exception: Shitceptions::ShittyArgumentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shitceptions/error.rb

Overview

Author:

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ ShittyArgumentError

Returns a new instance of ShittyArgumentError.



4
5
6
# File 'lib/shitceptions/error.rb', line 4

def initialize(klass)
  @klass
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/shitceptions/error.rb', line 8

def to_s
  "Expected klass to be of type Class, but was #{@klass.inspect}"
end