Exception: UnexpectedInput
- Inherits:
-
StandardError
- Object
- StandardError
- UnexpectedInput
- Defined in:
- lib/expects/error.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(handler) ⇒ UnexpectedInput
constructor
A new instance of UnexpectedInput.
- #message ⇒ Object
Constructor Details
#initialize(handler) ⇒ UnexpectedInput
Returns a new instance of UnexpectedInput.
4 5 6 7 |
# File 'lib/expects/error.rb', line 4 def initialize(handler) @handler = handler @subject, @expected = handler.subject, handler.objects end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
2 3 4 |
# File 'lib/expects/error.rb', line 2 def expected @expected end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
2 3 4 |
# File 'lib/expects/error.rb', line 2 def subject @subject end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/expects/error.rb', line 9 def @message ||= @handler. end |