るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
35件ヒット [1-35件を表示] (0.018秒)
トップページ > バージョン:2.5.0[x] > クエリ:scanf[x] > クエリ:scanf[x]

別のキーワード

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

検索結果

scanf (228421.0)

String#scan のフォーマット指定版といえるメソッド String#scanf を定義します。

String#scan のフォーマット指定版といえるメソッド String#scanf
を定義します。

組み込みクラス String と IO を拡張します。

=== 例
require 'scanf'

p "a 10 1.2". scanf("%s %d %f") # => ["a", 10, 1.2]
p "a 10 1.2 b 20 1.5e10".scanf("%s %d %f") # => ["a", 10, 1.2]
p "a 10 1.2 b 20 1.5e10".scanf("%s %d %f") {|*v| v}
...

String#scanf(format) -> Array (157369.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 (157369.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 (157009.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 (157009.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 (156745.0)

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

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

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

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

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

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

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

Scanf (84241.0)

scanf ライブラリで使用する名前空間です。

scanf ライブラリで使用する名前空間です。

@see Kernel.#scanf, String#scanf, IO#scanf, Stdin#scanf

Scanf::FormatSpecifier (66001.0)

Scanf::FormatSpecifier#conversion (66001.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#count_space? (66001.0)

@todo

@todo

Scanf::FormatSpecifier#letter (66001.0)

@todo

@todo

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

@todo

@todo

Scanf::FormatSpecifier#matched (66001.0)

@todo

@todo

Scanf::FormatSpecifier#matched_string (66001.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatSpecifier#mid_match? (66001.0)

@todo

@todo

Scanf::FormatSpecifier#re_string (66001.0)

@todo

@todo

Scanf::FormatSpecifier#to_re (66001.0)

@todo

@todo

Scanf::FormatSpecifier#to_s (66001.0)

@todo

@todo

Scanf::FormatSpecifier#width (66001.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatString (66001.0)

Scanf::FormatString#last_match_tried (66001.0)

@todo

@todo

Scanf::FormatString#last_spec (66001.0)

@todo

@todo

Scanf::FormatString#last_spec_tried (66001.0)

@todo

@todo

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

@todo

@todo

絞り込み条件を変える

Scanf::FormatString#matched_count (66001.0)

@todo

@todo

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

@todo

@todo

Scanf::FormatString#space (66001.0)

@todo

@todo

Scanf::FormatString#spec_count (66001.0)

@todo

@todo

Scanf::FormatString#string_left (66001.0)

@todo

@todo

絞り込み条件を変える

Scanf::FormatString#to_s (66001.0)

@todo

@todo

Scanf::FormatString.new(str) (66001.0)

@todo

@todo

Scanf::FormatString::REGEX (66001.0)

@todo

@todo

Scanf::FormatString::SPECIFIERS (66001.0)

@todo

@todo

NEWS for Ruby 2.5.0 (37.0)

NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...NEWS for Ruby 2.5.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス...

絞り込み条件を変える