From: Jim Weirich Date: Sun, 4 Dec 2011 07:14:42 +0000 (-0500) Subject: Add a dummy KeyError to 1.8 so that src koans will run. X-Git-Url: https://git.eng.unimelb.edu.au/public?p=ruby_koans.git;a=commitdiff_plain;h=4633ba5c799808473a9ec2574578c1699fd9aef8 Add a dummy KeyError to 1.8 so that src koans will run. --- diff --git a/src/edgecase.rb b/src/edgecase.rb index 1136218..1443807 100644 --- a/src/edgecase.rb +++ b/src/edgecase.rb @@ -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)