るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n=
  3. rsa n
  4. openssl n
  5. openssl n=

ライブラリ

クラス

検索結果

<< 1 2 > >>

StringIO#tell -> Integer (18202.0)

自身の現在の位置を返します。

自身の現在の位置を返します。

CSV#tell -> Integer (15224.0)

IO#pos, IO#tell に委譲します。

...IO#pos, IO#tell に委譲します。


@see IO#pos, IO#tell...

ARGF.class#tell -> Integer (15214.0)

ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位 の整数で返します。

...ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位
の整数で返します。

ARGF.pos # => 0
ARGF.gets # => "This is line one\n"
ARGF.pos # => 17

@see IO#pos, IO#tell, ARGF.class#pos=...

IO#tell -> Integer (15214.0)

ファイルポインタの現在の位置を整数で返します。

...タの現在の位置を整数で返します。

@raise IOError 既に close されている場合に発生します。

//emlist[例][ruby]{
IO.write("testfile", "This is line one\n")
File.open("testfile") do |f|
f.pos # => 0
f.gets # => "This is line one\n"
f.pos # => 17
end
//}...

Zlib::GzipReader#tell -> Integer (15208.0)

現在までに展開したデータの長さの合計を返します。 ファイルポインタの位置ではないことに注意して下さい。

...ことに注意して下さい。

require 'zlib'

Zlib::GzipWriter.open('hoge.gz') { |gz|
gz.puts 'hoge'
}

Zlib::GzipReader.open('hoge.gz'){|gz|
while c = gz.getc
printf "%c, %d\n", c, gz.pos
end
}
# 実行例
#=> h, 1
#=> o, 2
#=> g, 3
#=> e, 4
#=>
#=>...

絞り込み条件を変える

Dir#tell -> Integer (15202.0)

ディレクトリストリームの現在の位置を整数で返します。

...ディレクトリストリームの現在の位置を整数で返します。

@raise IOError 既に自身が close している場合に発生します。

//emlist[例][ruby]{
Dir.open("/tmp") {|d|
d.each {|f|
p d.pos
}
}
//}...

Zlib::GzipWriter#tell -> Integer (15202.0)

現在までに圧縮したデータの長さの合計を返します。 ファイルポインタの位置ではないことに注意して下さい。

...イルポインタの位置ではないことに注意して下さい。

require 'zlib'

filename='hoge1.gz'
f = File.open(filename, "w")
Zlib::GzipWriter.wrap(f, Zlib::BEST_COMPRESSION){|gz|
(1..10).each {|i|
gz.print i
puts gz.pos
}
}
#=> 1
#=> 2
#=> 3
......

StringIO#pos -> Integer (3102.0)

自身の現在の位置を返します。

自身の現在の位置を返します。

CSV#pos -> Integer (124.0)

IO#pos, IO#tell に委譲します。

...IO#pos, IO#tell に委譲します。


@see IO#pos, IO#tell...

ARGF.class#pos -> Integer (114.0)

ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位 の整数で返します。

...ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位
の整数で返します。

ARGF.pos # => 0
ARGF.gets # => "This is line one\n"
ARGF.pos # => 17

@see IO#pos, IO#tell, ARGF.class#pos=...

絞り込み条件を変える

<< 1 2 > >>