From: Jim Weirich Date: Thu, 3 Feb 2011 23:23:25 +0000 (-0800) Subject: my_same_class_method => my_method_in_the_same_class for clarity X-Git-Url: https://git.eng.unimelb.edu.au/public?p=ruby_koans.git;a=commitdiff_plain;h=0447d69a6d508368d8ee3ea46f484128c593b43b my_same_class_method => my_method_in_the_same_class for clarity --- diff --git a/koans/about_methods.rb b/koans/about_methods.rb index d36e9ab..a4df4b8 100644 --- a/koans/about_methods.rb +++ b/koans/about_methods.rb @@ -92,16 +92,16 @@ class AboutMethods < EdgeCase::Koan # ------------------------------------------------------------------ - def my_same_class_method(a, b) + def my_method_in_the_same_class(a, b) a * b end def test_calling_methods_in_same_class - assert_equal __, my_same_class_method(3,4) + assert_equal __, my_method_in_the_same_class(3,4) end def test_calling_methods_in_same_class_with_explicit_receiver - assert_equal __, self.my_same_class_method(3,4) + assert_equal __, self.my_method_in_the_same_class(3,4) end # ------------------------------------------------------------------ diff --git a/src/about_methods.rb b/src/about_methods.rb index 1497f9b..9e7af37 100644 --- a/src/about_methods.rb +++ b/src/about_methods.rb @@ -102,16 +102,16 @@ class AboutMethods < EdgeCase::Koan # ------------------------------------------------------------------ - def my_same_class_method(a, b) + def my_method_in_the_same_class(a, b) a * b end def test_calling_methods_in_same_class - assert_equal __(12), my_same_class_method(3,4) + assert_equal __(12), my_method_in_the_same_class(3,4) end def test_calling_methods_in_same_class_with_explicit_receiver - assert_equal __(12), self.my_same_class_method(3,4) + assert_equal __(12), self.my_method_in_the_same_class(3,4) end # ------------------------------------------------------------------