るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.020秒)
トップページ > バージョン:2.6.0[x] > クエリ:read[x] > ライブラリ:cgi/core[x]

別のキーワード

  1. _builtin read
  2. stringio read
  3. io read
  4. csv read
  5. tuple read

モジュール

検索結果

CGI::QueryExtension#multipart? -> bool (25.0)

マルチパートフォームの場合は、真を返します。 そうでない場合は、偽を返します。

マルチパートフォームの場合は、真を返します。
そうでない場合は、偽を返します。

例:
cgi = CGI.new
if cgi.multipart?
field1=cgi['field1'].read
else
field1=cgi['field1']
end