From c412097f6f8d95202bc9a00c7f9bb8ee6089b90a Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Sat, 30 Sep 2017 04:53:00 +0000 Subject: [PATCH] converted isKindOf: to a dual method --- moo/kernel/Apex.moo | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/moo/kernel/Apex.moo b/moo/kernel/Apex.moo index 8476fe8..9b4c40f 100644 --- a/moo/kernel/Apex.moo +++ b/moo/kernel/Apex.moo @@ -236,18 +236,12 @@ extend Apex ^aClass == Class } - method(#class) isKindOf: aClass - { - - ^(self isMemberOf: aClass) or: [self class inheritsFrom: aClass]. - } - method isMemberOf: aClass { ^self class == aClass } - method isKindOf: aClass + method(#dual) isKindOf: aClass { ^(self isMemberOf: aClass) or: [self class inheritsFrom: aClass].