diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/lib/tk.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index e5d1c6f63b..2cb4731cbd 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -3989,6 +3989,7 @@ class TkWindow<TkObject end def create_self + fail RuntimeError, "TkWindow is an abstract class" end private :create_self @@ -5124,7 +5125,7 @@ end class TkTextWin<TkWindow def create_self - fail TypeError, "TkTextWin is abstract class" + fail RuntimeError, "TkTextWin is an abstract class" end def bbox(index) |