mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Add a dummy KeyError to 1.8 so that src koans will run.
This commit is contained in:
@@ -24,6 +24,11 @@ def in_ruby_version(*versions)
|
|||||||
yield if versions.any? { |v| ruby_version?(v) }
|
yield if versions.any? { |v| ruby_version?(v) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
in_ruby_version("1.8") do
|
||||||
|
class KeyError < StandardError
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Standard, generic replacement value.
|
# Standard, generic replacement value.
|
||||||
# If value19 is given, it is used in place of value for Ruby 1.9.
|
# If value19 is given, it is used in place of value for Ruby 1.9.
|
||||||
def __(value="FILL ME IN", value19=:mu)
|
def __(value="FILL ME IN", value19=:mu)
|
||||||
|
|||||||
Reference in New Issue
Block a user