Add a dummy KeyError to 1.8 so that src koans will run.

This commit is contained in:
Jim Weirich
2011-12-04 02:14:42 -05:00
parent 5665cb0366
commit 4633ba5c79

View 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)