rename self to receiver

just because it is a keyword and can’t be used
This commit is contained in:
Torsten Ruger
2018-03-14 20:26:13 +05:30
parent 2533842204
commit 03a4e04f7e
10 changed files with 20 additions and 14 deletions

View File

@ -22,7 +22,7 @@ module Vool
assert_equal :message , @method.first.left.known_object
end
def test_slot_gets_self
assert_equal :self , @method.first.left.slots[0]
assert_equal :receiver , @method.first.left.slots[0]
end
def test_slot_assigns_to_local
assert_equal :a , @method.first.left.slots[-1]