mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Add keyword arguments (with correct answers).
This commit is contained in:
@@ -93,11 +93,11 @@ class AboutMessagePassing < EdgeCase::Koan
|
||||
# NOTE:
|
||||
#
|
||||
# In Ruby 1.8 the method_missing method is public and can be
|
||||
# called as shown above. However, in Ruby 1.9 the method_missing
|
||||
# method is private. We explicitly made it public in the testing
|
||||
# framework so this example works in both versions of Ruby. Just
|
||||
# keep in mind you can't call method_missing like that in Ruby
|
||||
# 1.9. normally.
|
||||
# called as shown above. However, in Ruby 1.9 (and later versions)
|
||||
# the method_missing method is private. We explicitly made it
|
||||
# public in the testing framework so this example works in both
|
||||
# versions of Ruby. Just keep in mind you can't call
|
||||
# method_missing like that after Ruby 1.9 normally.
|
||||
#
|
||||
# Thanks. We now return you to your regularly scheduled Ruby
|
||||
# Koans.
|
||||
|
||||
Reference in New Issue
Block a user