mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-21 01:03:20 -04:00
Merged src directory with existing koans.
This commit is contained in:
@@ -25,7 +25,7 @@ class AboutMessagePassing < EdgeCase::Koan
|
||||
|
||||
assert mc.send("caught?")
|
||||
assert mc.send("caught" + __ ) # What do you need to add to the first string?
|
||||
assert mc.send("CAUGHT?".__ ) # What would you need to do to the string?
|
||||
assert mc.send("CAUGHT?".____ ) # What would you need to do to the string?
|
||||
end
|
||||
|
||||
def test_send_with_underscores_will_also_send_messages
|
||||
@@ -96,7 +96,7 @@ class AboutMessagePassing < EdgeCase::Koan
|
||||
|
||||
class AllMessageCatcher
|
||||
def method_missing(method_name, *args, &block)
|
||||
"Someone called #{method_name} with (#{args.join(", ")})"
|
||||
"Someone called #{method_name} with <#{args.join(", ")}>"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user