るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. scanf scanf
  2. io scanf
  3. string scanf
  4. kernel scanf
  5. scanf to_s

ライブラリ

クラス

モジュール

検索結果

String#scanf(format) -> Array (78688.0)

ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。

ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。

require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]

ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。

requir...

String#scanf(format) {|*ary| ...} -> Array (78688.0)

ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。

ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。

require 'scanf'
str = "123 abc 456 def 789 ghi"
p str.scanf("%d%s") #=> [123, "abc"]

ブロックを指定した場合は scanf を継続して実行し、順次
見つかった文字列を変換したオブジェクトの配列を引数に、ブロックを
実行します。このとき、ブロックの実行結果を要素とする配列を返します。

requir...

Kernel#scanf(format) -> Array (78508.0)

STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。

STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。

@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。

@see IO#scanf, Stdin#scanf

Kernel#scanf(format) {|*ary| ...} -> Array (78508.0)

STDIN.scanf と同じです。 IO#scanf、Stdin#scanfも参照してください。

STDIN.scanf と同じです。
IO#scanf、Stdin#scanfも参照してください。

@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。

@see IO#scanf, Stdin#scanf

IO#scanf(format) -> Array (78376.0)

String#scanfも参照してください。

String#scanfも参照してください。

@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。

絞り込み条件を変える

IO#scanf(format) {|*ary| ...} -> Array (78376.0)

String#scanfも参照してください。

String#scanfも参照してください。

@param format スキャンするフォーマットを文字列で指定します。
詳細は、m:String#scanf#format を参照してください。

Scanf::FormatSpecifier#conversion (33004.0)

@todo

@todo

Scanf::FormatSpecifier#count_space? (33004.0)

@todo

@todo

Scanf::FormatSpecifier#letter (33004.0)

@todo

@todo

Scanf::FormatSpecifier#match(str) (33004.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#matched (33004.0)

@todo

@todo

Scanf::FormatSpecifier#matched_string (33004.0)

@todo

@todo

Scanf::FormatSpecifier#mid_match? (33004.0)

@todo

@todo

Scanf::FormatSpecifier#re_string (33004.0)

@todo

@todo

Scanf::FormatSpecifier#to_re (33004.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#to_s (33004.0)

@todo

@todo

Scanf::FormatSpecifier#width (33004.0)

@todo

@todo

Scanf::FormatString#last_match_tried (33004.0)

@todo

@todo

Scanf::FormatString#last_spec (33004.0)

@todo

@todo

Scanf::FormatString#last_spec_tried (33004.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatString#match(str) (33004.0)

@todo

@todo

Scanf::FormatString#matched_count (33004.0)

@todo

@todo

Scanf::FormatString#prune(n=matched_count) (33004.0)

@todo

@todo

Scanf::FormatString#space (33004.0)

@todo

@todo

Scanf::FormatString#spec_count (33004.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatString#string_left (33004.0)

@todo

@todo

Scanf::FormatString#to_s (33004.0)

@todo

@todo