Chervil is a toy Lisp interpreter written in Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

error.rb 234B

1234567891011121314151617
  1. module Chervil
  2. class Error
  3. attr_reader :message
  4. def initialize(message)
  5. @message = message
  6. end
  7. def ==(other)
  8. @message == other.message
  9. end
  10. def to_s
  11. "Error: #{@message}"
  12. end
  13. end
  14. end