lib/code/error.rb in code-ruby-0.5.6 vs lib/code/error.rb in code-ruby-0.6.0
- old
+ new
@@ -1,18 +1,29 @@
+# frozen_string_literal: true
+
class Code
class Error < StandardError
- class TypeError < ::Code::Error
+ class ArityError < Error
end
- class Undefined < ::Code::Error
+ class TypeError < Error
end
- class UndefinedVariable < ::Code::Error
+ class TypeError < Error
end
- class ArgumentError < ::Code::Error
+ class Undefined < Error
end
- class IncompatibleContext < ::Code::Error
+ class UndefinedVariable < Error
+ end
+
+ class ArgumentError < Error
+ end
+
+ class IncompatibleContext < Error
+ end
+
+ class KeyNotFound < Error
end
end
end