diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-11 01:45:06 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-11 01:45:06 +0000 |
| commit | 9a0e5a4d17077987056e2509f0c68b2f79eb1a06 (patch) | |
| tree | 1ccc0ed5cf77512fe32a15f1a86fda6e0e29e337 /ext/tk | |
| parent | 2f0b2d2db2a5b6e1c1f9b622a939899a62746b8c (diff) | |
| download | ruby-9a0e5a4d17077987056e2509f0c68b2f79eb1a06.tar.gz ruby-9a0e5a4d17077987056e2509f0c68b2f79eb1a06.tar.xz ruby-9a0e5a4d17077987056e2509f0c68b2f79eb1a06.zip | |
* ext/tk/lib/tk.rb: raise an exception when creating TkWindow
object, because TkWindow class is an abstract class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
| -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 e5d1c6f63..2cb4731cb 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) |
