種類
- インスタンスメソッド (36)
- 定数 (12)
- ライブラリ (12)
ライブラリ
- ビルトイン (24)
-
webrick
/ httprequest (12) - win32ole (12)
クラス
- Hash (24)
-
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ VARIANT (12)
検索結果
先頭5件
-
WIN32OLE
_ VARIANT :: Nothing -> WIN32OLE _ VARIANT (18101.0) -
DISPATCH型の空のオブジェクトです。
DISPATCH型の空のオブジェクトです。
@see WIN32OLE::VARIANT::VT_DISPATCH -
WEBrick
:: HTTPRequest # continue (16.0) -
@todo 1.9.3 Generate HTTP/1.1 100 continue response if the client expects it, otherwise does nothing.
...@todo 1.9.3
Generate HTTP/1.1 100 continue response if the client expects it,
otherwise does nothing.... -
Hash
# delete(key) -> object | nil (12.0) -
key に対応する要素を取り除きます。
...ッチする要素がなかった時に評価され、その結果を返します。
//emlist[例][ruby]{
h = {:ab => "some" , :cd => "all"}
p h.delete(:ab) #=> "some"
p h.delete(:ef) #=> nil
p h.delete(:ef){|key|"#{key} Nothing"} #=> "ef Nothing"
p h #=> {:cd=>"all"}
//}
@see Hash#delete_if... -
Hash
# delete(key) {|key| . . . } -> object (12.0) -
key に対応する要素を取り除きます。
...ッチする要素がなかった時に評価され、その結果を返します。
//emlist[例][ruby]{
h = {:ab => "some" , :cd => "all"}
p h.delete(:ab) #=> "some"
p h.delete(:ef) #=> nil
p h.delete(:ef){|key|"#{key} Nothing"} #=> "ef Nothing"
p h #=> {:cd=>"all"}
//}
@see Hash#delete_if... -
logger (12.0)
-
ログを記録するためのライブラリです。
...quire 'logger'
logger = Logger.new(STDOUT)
logger.level = Logger::WARN
logger.debug("Created logger")
logger.info("Program started")
logger.warn("Nothing to do!")
path = "a_non_existent_file"
begin
File.foreach(path) do |line|
unless line =~ /^(\w+) = (.*)$/
logger.error("Line in wron......ジェクトも記録するメッセージとして使えます。
下が出力例です。
W, [2017-12-07T02:22:53.649000 #11601] WARN -- : Nothing to do!
F, [2017-12-07T02:22:53.649172 #11601] FATAL -- : Caught exception; exiting
F, [2017-12-07T02:22:53.649222 #11601] FATAL -- : No such fi...