#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Tue, 17 Sep 2019 12:25:26 +0200
changeset 24787 da4c7b37af78
parent 24786 1481f5b459f9
child 24788 97f1d494db0d
#BUGFIX by exept class: MethodWithBreakpoints added: #originalMethodIfWrapped comment/format in: #originalMethod
MethodWithBreakpoints.st
--- a/MethodWithBreakpoints.st	Mon Sep 16 17:38:41 2019 +0200
+++ b/MethodWithBreakpoints.st	Tue Sep 17 12:25:26 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2012 by Claus Gittinger
               All Rights Reserved
@@ -98,11 +100,19 @@
 !MethodWithBreakpoints methodsFor:'accessing'!
 
 originalMethod
+    "return the original method; the one without breakpoints"
+
     ^ originalMethod
 !
 
 originalMethod:something
     originalMethod := something.
+!
+
+originalMethodIfWrapped
+    "return the original method; the one without breakpoints"
+
+    ^ originalMethod ? self
 ! !
 
 !MethodWithBreakpoints methodsFor:'enumeration'!