Skip to content

Commit

Permalink
my_same_class_method => my_method_in_the_same_class for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Feb 3, 2011
1 parent a05d7b8 commit 0447d69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions koans/about_methods.rb
Expand Up @@ -92,16 +92,16 @@ def test_method_without_explicit_return

# ------------------------------------------------------------------

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

# ------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions src/about_methods.rb
Expand Up @@ -102,16 +102,16 @@ def test_method_without_explicit_return

# ------------------------------------------------------------------

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

# ------------------------------------------------------------------
Expand Down

0 comments on commit 0447d69

Please sign in to comment.