mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Compare commits
2 Commits
e072392099
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f2b3dd18e | ||
|
|
12c463c042 |
@@ -169,7 +169,7 @@ class AboutPatternMatching < Neo::Koan
|
|||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
# Hash pattern is quite the same as Array pattern, but it expects #deconsturct_keys(keys) method
|
# Hash pattern is quite the same as Array pattern, but it expects #deconstruct_keys(keys) method
|
||||||
# It works with symbol keys for now
|
# It works with symbol keys for now
|
||||||
|
|
||||||
class LetterAccountant
|
class LetterAccountant
|
||||||
@@ -212,4 +212,4 @@ class AboutPatternMatching < Neo::Koan
|
|||||||
assert_equal __, hash_pattern_with_sugar(LetterAccountant.new('xyz'))
|
assert_equal __, hash_pattern_with_sugar(LetterAccountant.new('xyz'))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user