lib/code/error.rb in code-ruby-0.9.3 vs lib/code/error.rb in code-ruby-0.10.0

- old
+ new

@@ -23,7 +23,23 @@ class IncompatibleContext < Error end class KeyNotFound < Error end + + class Break < Error + attr_reader :value + + def initialize(value = nil) + @value = value || Object::Nothing.new + end + end + + class Next < Error + attr_reader :value + + def initialize(value = nil) + @value = value || Object::Nothing.new + end + end end end