るりまサーチ

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

別のキーワード

  1. win32ole nothing
  2. win32ole_variant nothing
  3. nothing win32ole
  4. nothing win32ole_variant

ライブラリ

クラス

キーワード

検索結果

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...

絞り込み条件を変える