summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkcanvas.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-03 04:55:07 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-03 04:55:07 +0000
commitf8b41c131b4ebe3f92ffb4c46cb66bbee211cc77 (patch)
tree9834a0d57193a270ab207169f79faeb8b7f1cc8a /ext/tk/lib/tkcanvas.rb
parent1c63280fcb458971136577d2aea1556555c07619 (diff)
downloadruby-f8b41c131b4ebe3f92ffb4c46cb66bbee211cc77.tar.gz
ruby-f8b41c131b4ebe3f92ffb4c46cb66bbee211cc77.tar.xz
ruby-f8b41c131b4ebe3f92ffb4c46cb66bbee211cc77.zip
* 'format'==>'Kernel.format' (avoid override trouble)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkcanvas.rb')
-rw-r--r--ext/tk/lib/tkcanvas.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/lib/tkcanvas.rb b/ext/tk/lib/tkcanvas.rb
index 687f52165..58177584a 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