Current Path : /usr/local/share/ri/1.8/system/Kernel/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/Kernel/sleep-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Suspends the current thread for <em>duration</em> seconds (which may be any number, including a <tt>Float</tt> with fractional seconds). Returns the actual number of seconds slept (rounded), which may be less than that asked for if another thread calls <tt>Thread#run</tt>. Zero arguments causes <tt>sleep</tt> to sleep forever. - !ruby/struct:SM::Flow::VERB body: " Time.new #=> Wed Apr 09 08:56:32 CDT 2003\n sleep 1.2 #=> 1\n Time.new #=> Wed Apr 09 08:56:33 CDT 2003\n sleep 1.9 #=> 2\n Time.new #=> Wed Apr 09 08:56:35 CDT 2003\n" full_name: Kernel#sleep is_singleton: false name: sleep params: | sleep([duration]) => fixnum visibility: public