git://git.eng.unimelb.edu.au
/
ruby_koans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5665cb0
)
Add a dummy KeyError to 1.8 so that src koans will run.
author
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:14:42 +0000
(
02:14
-0500)
committer
Jim Weirich
<jim.weirich@gmail.com>
Sun, 4 Dec 2011 07:14:42 +0000
(
02:14
-0500)
src/edgecase.rb
patch
|
blob
|
history
diff --git
a/src/edgecase.rb
b/src/edgecase.rb
index
1136218
..
1443807
100644
(file)
--- 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)