るりまサーチ

最速Rubyリファレンスマニュアル検索!
88件ヒット [1-88件を表示] (0.053秒)
トップページ > クエリ:IO[x] > クエリ:io[x] > クエリ:tell[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io each_line
  5. io readlines

ライブラリ

クラス

検索結果

IO#tell -> Integer (45114.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...

IO#pos -> Integer (30014.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...

StringIO#tell -> Integer (21102.0)

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

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

CSV#tell -> Integer (15212.0)

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

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


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

ARGF.class#tell -> Integer (15132.0)

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

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

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

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

絞り込み条件を変える

StringIO#pos -> Integer (6002.0)

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

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

CSV#pos -> Integer (112.0)

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

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


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

ARGF.class#pos -> Integer (32.0)

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

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

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

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