Method: PatternMatchingError#to_contract_error
- Defined in:
- lib/contracts.rb
#to_contract_error ⇒ Object
Used to convert to ContractError from PatternMatchingError
34 35 36 |
# File 'lib/contracts.rb', line 34 def to_contract_error ContractError.new(to_s, data) end |