Add a dummy KeyError to 1.8 so that src koans will run.
authorJim Weirich <jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:14:42 +0000 (02:14 -0500)
committerJim Weirich <jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:14:42 +0000 (02:14 -0500)
src/edgecase.rb

index 1136218..1443807 100644 (file)
@@ -24,6 +24,11 @@ def in_ruby_version(*versions)
   yield if versions.any? { |v| ruby_version?(v) }
 end
 
+in_ruby_version("1.8") do
+  class KeyError < StandardError
+  end
+end
+
 # Standard, generic replacement value.
 # If value19 is given, it is used in place of value for Ruby 1.9.
 def __(value="FILL ME IN", value19=:mu)