るりまサーチ

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

別のキーワード

  1. etc passwd
  2. passwd each
  3. etc passwd=
  4. passwd age
  5. passwd dir

キーワード

検索結果

<< < ... 8 9 10 >>

WEBrick::HTTPAuth::BasicAuth (6.0)

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

...ck's realm"
srv = WEBrick::HTTPServer.new({ :BindAddress => '127.0.0.1', :Port => 10080})

htpd = WEBrick::HTTPAuth::Htpasswd.new('dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')

authenticator = WEBrick::HTTPAuth::BasicAuth.new(:UserDB => htpd, :Realm => realm)...

WEBrick::HTTPAuth::BasicAuth.new(config, default = Config::BasicAuth) -> WEBrick::HTTPAuth::BasicAuth (6.0)

BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。

...Realm には与えます。:UserDB
には WEBrick::HTTPAuth::Htpasswd オブジェクトを与えます。:Logger には
ロガーオブジェクトを与えます。また、:AutoReloadUserDB には
WEBrick::HTTPAuth::Htpasswd#get_passwd
reload_db に渡す引数を与えます。

@param confi...

WEBrick::HTTPAuth::DigestAuth (6.0)

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

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

digest_auth = WEBrick::HTTPAuth::DigestAuth.new config...

shell (6.0)

Ruby 上で sh/csh のようにコマンドの実行及びフィルタリングを手軽に行うためのライブラリです。

...> "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") > "tee12"
sh.cat("/etc/printcap") | sh.tee("tee1") >> "tee2"
(sh.cat < "/etc/printcap") | sh.tee("tee11") >> "tee12"

==== Example 4:

require 'shell'
sh = Shell.new
print sh.cat("/etc/passwd").head.collect {|line| /keiju/ =~ line }...

制御構造 (6.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...ます。unless 式にelsif を指定することはできませ
ん。

==== unless 修飾子

//emlist[例][ruby]{
print "stop\n" unless valid(passwd)
//}

文法:

式 unless 式

右辺の条件が成立しない時に、左辺の式を評価してその結果を返します。
条件...

絞り込み条件を変える

<< < ... 8 9 10 >>