るりまサーチ

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

別のキーワード

  1. _builtin pos
  2. _builtin pos=
  3. csv pos
  4. csv pos=
  5. zlib pos

モジュール

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

CSV#pos=(n) (6123.0)

IO#pos= に委譲します。

...IO#pos= に委譲します。


@see IO#pos=...

ARGF.class#pos=(n) (6119.0)

ARGFが開いているファイルのファイルポインタを指定位置に移動します。

...ARGFが開いているファイルのファイルポインタを指定位置に移動します。

@param n 先頭からのオフセットをバイト単位の整数で指定します。

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

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

IO#pos=(n) (6113.0)

ファイルポインタを指定位置に移動します。 IO#seek(n, IO::SEEK_SET) と同じです。

...ットを整数で指定します。

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

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

StringScanner#charpos -> Integer (6112.0)

現在のスキャンポインタのインデックスを文字単位で返します。

...キャンポインタのインデックスを文字単位で返します。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new("abcädeföghi")
s.charpos # => 0
s.scan_until(/ä/) # => "abcä"
s.pos # => 5
s.charpos # => 4
//}

@see StringScanner#pos...

StringIO#pos=(n) (6107.0)

自身の位置を n に移動します。自身が表す文字列のサイズより大きくても構いません。

...@param n 自身の位置を整数で指定します。

@raise Errno::EINVAL n がマイナスである場合に発生します。

//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge", 'r+')
a.pos = 10
a << 'Z'
a.string #=> "hoge\000\000\000\000\000\000Z"
//}...

絞り込み条件を変える

Array#transpose -> Array (6100.0)

自身を行列と見立てて、行列の転置(行と列の入れ換え)を行いま す。転置した配列を生成して返します。空の配列に対しては空の配列を生 成して返します。

...p [[1,2],
[3,4],
[5,6]].transpose
# => [[1, 3, 5], [2, 4, 6]]

p [].transpose
# => []

p [1,2,3].transpose

# => -:1:in `transpose': cannot convert Fixnum into Array (TypeError)
# from -:1

p [[1,2],
[3,4,5],
[6,7]].transpose
# => -:3:in `transpose': element size differ (3 should b...

BigDecimal::SIGN_POSITIVE_FINITE -> Integer (6100.0)

正の値に対応する BigDecimal#sign の値を返します。

正の値に対応する BigDecimal#sign の値を返します。

BigDecimal::SIGN_POSITIVE_INFINITE -> Integer (6100.0)

正の無限大に対応する BigDecimal#sign の値を返します。

正の無限大に対応する BigDecimal#sign の値を返します。

BigDecimal::SIGN_POSITIVE_ZERO -> Integer (6100.0)

正の 0 に対応する BigDecimal#sign の値を返します。

正の 0 に対応する BigDecimal#sign の値を返します。
<< < 1 2 3 4 5 ... > >>