Class: Tolerance::FakeException
- Inherits:
-
Object
- Object
- Tolerance::FakeException
- Defined in:
- lib/tolerance/fake_exception.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Instance Method Summary collapse
-
#initialize(name:, receiver:) ⇒ FakeException
constructor
A new instance of FakeException.
Constructor Details
#initialize(name:, receiver:) ⇒ FakeException
Returns a new instance of FakeException.
7 8 9 10 |
# File 'lib/tolerance/fake_exception.rb', line 7 def initialize(name:, receiver:) @name = name @receiver = receiver end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/tolerance/fake_exception.rb', line 5 def name @name end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
5 6 7 |
# File 'lib/tolerance/fake_exception.rb', line 5 def receiver @receiver end |