Exception: Mona::Result::NoMatchError
- Defined in:
- lib/mona/result/error.rb
Overview
raised when Result::Match does not match the result
Instance Attribute Summary collapse
- #result ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(result) ⇒ NoMatchError
constructor
A new instance of NoMatchError.
Constructor Details
#initialize(result) ⇒ NoMatchError
Returns a new instance of NoMatchError.
12 13 14 15 |
# File 'lib/mona/result/error.rb', line 12 def initialize(result) @result = result super("No match found for #{result}") end |
Instance Attribute Details
#result ⇒ Object (readonly)
10 11 12 |
# File 'lib/mona/result/error.rb', line 10 def result @result end |