summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tktext.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-16 07:14:50 +0000
commitb9de30c8ebe7d7227364f8430e86156c0b13db22 (patch)
tree8708e5fd1cd567fc0fa55be976bfa23a580c109f /ext/tk/lib/tktext.rb
parente26b1f8ff90eceae3c41a6700b2cf2a83e4b739f (diff)
downloadruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.tar.gz
ruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.tar.xz
ruby-b9de30c8ebe7d7227364f8430e86156c0b13db22.zip
* eval.c (proc_alloc): re-unification of Block and Proc. Block
class is no longer available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tktext.rb')
-rw-r--r--ext/tk/lib/tktext.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tktext.rb b/ext/tk/lib/tktext.rb
index 2db9a22bd..62747be0b 100644
--- a/ext/tk/lib/tktext.rb
+++ b/ext/tk/lib/tktext.rb
@@ -172,11 +172,11 @@ class TkText<TkTextWin
tk_send 'tag', 'add', tag, index1, index2
end
- def tag_bind(tag, seq, cmd=Block.new, args=nil)
+ def tag_bind(tag, seq, cmd=Proc.new, args=nil)
_bind(['tag', 'bind', tag], seq, cmd, args)
end
- def tag_bind_append(tag, seq, cmd=Block.new, args=nil)
+ def tag_bind_append(tag, seq, cmd=Proc.new, args=nil)
_bind_append(['tag', 'bind', tag], seq, cmd, args)
end
@@ -663,11 +663,11 @@ class TkTextTag<TkObject
@t.tag_configinfo @id, key
end
- def bind(seq, cmd=Block.new, args=nil)
+ def bind(seq, cmd=Proc.new, args=nil)
_bind([@t.path, 'tag', 'bind', @id], seq, cmd, args)
end
- def bind_append(seq, cmd=Block.new, args=nil)
+ def bind_append(seq, cmd=Proc.new, args=nil)
_bind_append([@t.path, 'tag', 'bind', @id], seq, cmd, args)
end