4件ヒット
[1-4件を表示]
(0.122秒)
ライブラリ
- ビルトイン (1)
-
net
/ imap (1) - optparse (1)
-
webrick
/ httpresponse (1)
クラス
- Exception (1)
-
Net
:: IMAP :: ContentDisposition (1) - OptionParser (1)
-
WEBrick
:: HTTPResponse (1)
キーワード
- backtrace (1)
- param (1)
-
program
_ name (1)
検索結果
先頭4件
-
WEBrick
:: HTTPResponse # filename -> String | nil (72910.0) -
自身の内容があるファイルのそれである場合に、そのファイル名を返します。 デフォルトは nil です。
自身の内容があるファイルのそれである場合に、そのファイル名を返します。
デフォルトは nil です。 -
Net
:: IMAP :: ContentDisposition # param -> { String => String } | nil (28228.0) -
Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。
Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。
ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"
* "SIZE" -
Exception
# backtrace -> [String] (27961.0) -
バックトレース情報を返します。
バックトレース情報を返します。
デフォルトでは
* "#{sourcefile}:#{sourceline}:in `#{method}'"
(メソッド内の場合)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
//emlist[例][ruby]{
def methd
raise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in `methd'", "filename.rb:6... -
OptionParser
# program _ name -> String (18643.0) -
プログラムの名前を文字列で返します。
プログラムの名前を文字列で返します。
デフォルトは $0 が使われます。
@return プログラムの名前を文字列で返します。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
p $0 # => /path/to/filename.rb
p opts.program_name # => filename
end
//}