Exception: HMap::ClassIncludedError

Inherits:
HMapError
  • Object
show all
Defined in:
lib/hmap/exceptions.rb

Overview

Raised when a class is not the class of obj.

Instance Method Summary collapse

Constructor Details

#initialize(cls1, cls2) ⇒ ClassIncludedError

Returns a new instance of ClassIncludedError.



29
30
31
# File 'lib/hmap/exceptions.rb', line 29

def initialize(cls1, cls2)
  super format('%<cls1>s must be the %<cls2>s of obj', cls1: cls1, cls2: cls2)
end