summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/timer.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-08 14:21:31 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-08 14:21:31 +0000
commit8d1d3c7c62359d34224e7a6ede3a824ec5b7cd96 (patch)
treeca854307980dcacce6175a101f273922b96818d0 /ext/tk/lib/tk/timer.rb
parent14d3b602ddbd40b40f9c9b57f92a6e56f1a35645 (diff)
* ext/tk/lib/tk/timer.rb: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/timer.rb')
-rw-r--r--ext/tk/lib/tk/timer.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/lib/tk/timer.rb b/ext/tk/lib/tk/timer.rb
index 87670c9..47f2b79 100644
--- a/ext/tk/lib/tk/timer.rb
+++ b/ext/tk/lib/tk/timer.rb
@@ -249,7 +249,7 @@ class TkTimer
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
if interval != 'idle' && interval != :idle \
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
- fail ArguemntError, "expect Integer or Proc"
+ fail ArgumentError, "expect Integer or Proc"
end
@sleep_time = interval
end
@@ -259,7 +259,7 @@ class TkTimer
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
if interval != 'idle' && interval != :idle \
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
- fail ArguemntError, "expect Integer or Proc for 1st argument"
+ fail ArgumentError, "expect Integer or Proc for 1st argument"
end
@sleep_time = interval
@@ -283,7 +283,7 @@ class TkTimer
@loop_exec = 0
else
if not loop_exec.kind_of?(Integer)
- fail ArguemntError, "expect Integer for 2nd argument"
+ fail ArgumentError, "expect Integer for 2nd argument"
end
@loop_exec = loop_exec
end
@@ -334,7 +334,7 @@ class TkTimer
sleep = @init_sleep unless sleep
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
- fail ArguemntError, "expect Integer or 'idle' for 1st argument"
+ fail ArgumentError, "expect Integer or 'idle' for 1st argument"
end
@init_sleep = sleep
@@ -364,7 +364,7 @@ class TkTimer
if argc > 0
sleep = init_args.shift
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
- fail ArguemntError, "expect Integer or 'idle' for 1st argument"
+ fail ArgumentError, "expect Integer or 'idle' for 1st argument"
end
@init_sleep = sleep
end
@@ -436,7 +436,7 @@ class TkTimer
fail RuntimeError, "no procedure to continue" unless cmd
if wait
unless wait.kind_of?(Integer)
- fail ArguemntError, "expect Integer for 1st argument"
+ fail ArgumentError, "expect Integer for 1st argument"
end
sleep = wait
end