るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.063秒)
トップページ > バージョン:2.7.0[x] > 種類:クラス[x] > クエリ:ri[x] > クエリ:initialize[x]

別のキーワード

  1. ri generate
  2. ri description
  3. rdoc/generator/ri initialize
  4. rdoc/generator/ri ri

キーワード

検索結果

Thread::ConditionVariable (18022.0)

スレッドの同期機構の一つである状態変数を実現するクラスです。

...が空になった場合、
あるいは満タンになった場合に Condition Variable を使って wait しています。

require 'thread'

class
TinyQueue
def initialize(max=2)
@max = max
@full = ConditionVariable.new
@empty = ConditionVariable.new
@mutex = Mut...

WEBrick::HTTPAuth::DigestAuth (9022.0)

HTTP の Digest 認証のためのクラスです。

HTTP の Digest 認証のためのクラスです。

2617 も参照してください。

例:
require 'webrick'
config = { :Realm => 'DigestAuth example realm' }

htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htdigest.set_passwd config[:Realm], 'username', 'password'
htdigest.flush

config[:UserDB] = htdigest

dige...