diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-03 04:55:07 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-03 04:55:07 +0000 |
commit | a7c382223ceee47e2d5a2a7ef3e495e1259b9540 (patch) | |
tree | 9834a0d57193a270ab207169f79faeb8b7f1cc8a /ext/tk/lib/tkcanvas.rb | |
parent | e3bab670fcbcb8e9adced59e880aa0b4851949cd (diff) | |
download | ruby-a7c382223ceee47e2d5a2a7ef3e495e1259b9540.tar.gz |
* 'format'==>'Kernel.format' (avoid override trouble)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkcanvas.rb')
-rw-r--r-- | ext/tk/lib/tkcanvas.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/lib/tkcanvas.rb b/ext/tk/lib/tkcanvas.rb index 687f521655..58177584af 100644 --- a/ext/tk/lib/tkcanvas.rb +++ b/ext/tk/lib/tkcanvas.rb @@ -569,7 +569,7 @@ class TkcTag<TkObject def initialize(parent, mode=nil, *args) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @c = parent @cpath = parent.path @@ -647,7 +647,7 @@ class TkcTagString<TkcTag def initialize(parent, name, mode=nil, *args) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @c = parent @cpath = parent.path @@ -664,7 +664,7 @@ TkcNamedTag = TkcTagString class TkcTagAll<TkcTag def initialize(parent) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @c = parent @cpath = parent.path @@ -677,7 +677,7 @@ end class TkcTagCurrent<TkcTag def initialize(parent) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @c = parent @cpath = parent.path @@ -691,7 +691,7 @@ class TkcGroup<TkcTag Tk_cGroup_ID = ['tkcg'.freeze, '00000'.taint].freeze def create_self(parent, *args) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @c = parent @cpath = parent.path @@ -737,7 +737,7 @@ class TkcItem<TkObject def initialize(parent, *args) if not parent.kind_of?(TkCanvas) - fail format("%s need to be TkCanvas", parent.inspect) + fail Kernel.format("%s need to be TkCanvas", parent.inspect) end @parent = @c = parent @path = parent.path |