diff options
Diffstat (limited to 'lib/tk.rb')
-rw-r--r-- | lib/tk.rb | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |