mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-14 23:13:20 -04:00
@@ -14,7 +14,7 @@ class AboutIteration < Neo::Koan
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
in_ruby_version("1.9", "2") do
|
in_ruby_version("1.9", "2", "3") do
|
||||||
def as_name(name)
|
def as_name(name)
|
||||||
name.to_sym
|
name.to_sym
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ EOS
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
in_ruby_version("1.9", "2") do
|
in_ruby_version("1.9", "2", "3") do
|
||||||
def test_in_modern_ruby_single_characters_are_represented_by_strings
|
def test_in_modern_ruby_single_characters_are_represented_by_strings
|
||||||
assert_equal __('a'), ?a
|
assert_equal __('a'), ?a
|
||||||
assert_equal __(false), ?a == 97
|
assert_equal __(false), ?a == 97
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class Object
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
in_ruby_version("1.9", "2") do
|
in_ruby_version("1.9", "2", "3") do
|
||||||
public :method_missing
|
public :method_missing
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ require 'about_strings'
|
|||||||
require 'about_symbols'
|
require 'about_symbols'
|
||||||
require 'about_regular_expressions'
|
require 'about_regular_expressions'
|
||||||
require 'about_methods'
|
require 'about_methods'
|
||||||
in_ruby_version("2") do
|
in_ruby_version("2", "3") do
|
||||||
require 'about_keyword_arguments'
|
require 'about_keyword_arguments'
|
||||||
end
|
end
|
||||||
require 'about_constants'
|
require 'about_constants'
|
||||||
|
|||||||
Reference in New Issue
Block a user