summaryrefslogtreecommitdiff
path: root/lib/tk.rb
diff options
context:
space:
mode:
author(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-09-08 07:09:52 +0000
committer(no author) <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-09-08 07:09:52 +0000
commitb1f96af92f5b8519c477de3bd8917e5220442f6b (patch)
treec29d1f6370f4498547c80a69e0440256eeaf39e7 /lib/tk.rb
parent48acbc5e03622f1eb0423a6c2a3a603f61acfac6 (diff)
This commit was manufactured by cvs2svn to create tag 'v1_1d-start'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_1d-start@299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tk.rb')
-rw-r--r--lib/tk.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tk.rb b/lib/tk.rb
index f44a1fe4a8..7a5d85f1df 100644
--- a/lib/tk.rb
+++ b/lib/tk.rb
@@ -1548,10 +1548,16 @@ module TkTreatFont
end
end
-class TkObject<TkKernel
+class TkObject
include Tk
include TkTreatFont
+ def TkObject.new(*args, &block)
+ obj = super
+ obj.instance_eval(&block) if block
+ obj
+ end
+
def path
return @path
end