summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/clock.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-11 04:51:21 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-11 04:51:21 +0000
commit94d960beb57ead291992a6ceb34871b377ade1d1 (patch)
tree81258b81d9111c762cb80ca56141cd1f8ce9d0f9 /ext/tk/lib/tk/clock.rb
parent5716ff7b80b90b0c2aebcc1d41d8806aaf707bf3 (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/clock.rb')
-rw-r--r--ext/tk/lib/tk/clock.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/tk/lib/tk/clock.rb b/ext/tk/lib/tk/clock.rb
index 88b66129ea..823b8a6341 100644
--- a/ext/tk/lib/tk/clock.rb
+++ b/ext/tk/lib/tk/clock.rb
@@ -8,45 +8,45 @@ module Tk
def self.clicks(ms=nil)
case ms
when nil
- tk_call_without_enc('clock','clicks').to_i
+ tk_call_without_enc('clock','clicks').to_i
when /^mic/
- tk_call_without_enc('clock','clicks','-microseconds').to_i
+ tk_call_without_enc('clock','clicks','-microseconds').to_i
when /^mil/
- tk_call_without_enc('clock','clicks','-milliseconds').to_i
+ tk_call_without_enc('clock','clicks','-milliseconds').to_i
else
- tk_call_without_enc('clock','clicks','-milliseconds').to_i
+ tk_call_without_enc('clock','clicks','-milliseconds').to_i
end
end
def self.format(clk, form=nil)
if form
- tk_call('clock','format',clk,'-format',form)
+ tk_call('clock','format',clk,'-format',form)
else
- tk_call('clock','format',clk)
+ tk_call('clock','format',clk)
end
end
def self.formatGMT(clk, form=nil)
if form
- tk_call('clock','format',clk,'-format',form,'-gmt','1')
+ tk_call('clock','format',clk,'-format',form,'-gmt','1')
else
- tk_call('clock','format',clk,'-gmt','1')
+ tk_call('clock','format',clk,'-gmt','1')
end
end
def self.scan(str, base=nil)
if base
- tk_call('clock','scan',str,'-base',base).to_i
+ tk_call('clock','scan',str,'-base',base).to_i
else
- tk_call('clock','scan',str).to_i
+ tk_call('clock','scan',str).to_i
end
end
def self.scanGMT(str, base=nil)
if base
- tk_call('clock','scan',str,'-base',base,'-gmt','1').to_i
+ tk_call('clock','scan',str,'-base',base,'-gmt','1').to_i
else
- tk_call('clock','scan',str,'-gmt','1').to_i
+ tk_call('clock','scan',str,'-gmt','1').to_i
end
end