diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-11 04:51:21 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-11 04:51:21 +0000 |
commit | 94d960beb57ead291992a6ceb34871b377ade1d1 (patch) | |
tree | 81258b81d9111c762cb80ca56141cd1f8ce9d0f9 /ext/tk/lib/tk/root.rb | |
parent | 5716ff7b80b90b0c2aebcc1d41d8806aaf707bf3 (diff) |
* ext/tk/lib/tk/*: untabify
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/root.rb')
-rw-r--r-- | ext/tk/lib/tk/root.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/tk/lib/tk/root.rb b/ext/tk/lib/tk/root.rb index 6e16fb1989..24a5cf1ea0 100644 --- a/ext/tk/lib/tk/root.rb +++ b/ext/tk/lib/tk/root.rb @@ -19,11 +19,11 @@ class TkRoot<TkWindow new = super(:without_creating=>true, :widgetname=>'.') if keys # wm commands keys.each{|k,v| - if v.kind_of? Array - new.send(k,*v) - else - new.send(k,v) - end + if v.kind_of? Array + new.send(k,*v) + else + new.send(k,v) + end } end ROOT[0] = new @@ -33,16 +33,16 @@ class TkRoot<TkWindow def TkRoot.new(keys=nil, &b) unless TkCore::INTERP.tk_windows['.'] TkCore::INTERP.tk_windows['.'] = - super(:without_creating=>true, :widgetname=>'.'){} + super(:without_creating=>true, :widgetname=>'.'){} end root = TkCore::INTERP.tk_windows['.'] if keys # wm commands keys.each{|k,v| - if v.kind_of? Array - root.__send__(k,*v) - else - root.__send__(k,v) - end + if v.kind_of? Array + root.__send__(k,*v) + else + root.__send__(k,v) + end } end root.instance_eval(&b) if block_given? |