Class: Paquito::PackError

Inherits:
Error
  • Object
show all
Defined in:
lib/paquito/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, receiver = nil) ⇒ PackError

Returns a new instance of PackError.



9
10
11
12
# File 'lib/paquito/errors.rb', line 9

def initialize(msg, receiver = nil)
  super(msg)
  @receiver = receiver
end

Instance Attribute Details

#receiverObject (readonly)

Returns the value of attribute receiver.



7
8
9
# File 'lib/paquito/errors.rb', line 7

def receiver
  @receiver
end