るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.258秒)

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

クラス

キーワード

検索結果

File::Stat#blocks -> Integer (26109.0)

割り当てられているブロック数を返します。

...割り当てられているブロック数を返します。

//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.blocks #=> nil
//}...

Enumerator#feed(obj) -> nil (8020.0)

Enumerator 内部の yield が返す値を設定します。

...10) の順に実行される
o = Object.new
def o.each
x = yield # (2) blocks
p x # (5) => "foo"
x = yield # (6) blocks
p x # (8) => nil
x = yield # (9) blocks
p x # not reached w/o another e.next
end

e = o.to_enum
e.next...

File::Stat (8008.0)

ファイルの情報を格納したオブジェクトのクラス。

...rdev_minor rdev の minor 番号部
size ファイルサイズ(バイト単位)
blksize 望ましいI/Oのブロックサイズ
blocks
割り当てられているブロック数
atime 最終アクセス時刻
mtime 最終更新時刻
ctime 最終状...

File::Stat.new(path) -> File::Stat (8008.0)

path に関する File::Stat オブジェクトを生成して返します。 File.stat と同じです。

...m Files/ruby-1.8/lib/ruby/site_ruby/1.8"
p File::Stat.new($:[0])
#=> 例
#<File::Stat dev=0x2, ino=0, mode=040755, nlink=1, uid=0, gid=0, rdev=0x2, size=0, blksize=nil, blocks=nil, atime=Sun Sep 02 14:15:20 +0900 2007, mtime=Tue Apr 24 23:03:44 +0900 2007, ctime=Tue Apr 24 23:03:37 +0900 2007>
//}...

Thread.handle_interrupt(hash) { ... } -> object (8008.0)

スレッドの割り込みのタイミングを引数で指定した内容に変更してブロックを 実行します。

...hread.handle_interrupt による制御が有効です。

==== Stack control settings

It's possible to stack multiple levels of ::handle_interrupt blocks in order
to control more than one ExceptionClass and TimingSymbol at a time.

Thread.handle_interrupt(FooError => :never) {
Thread.handle_i...

絞り込み条件を変える