ライブラリ
- English (12)
- ビルトイン (84)
- etc (465)
-
net
/ ftp (48) -
shell
/ filter (42) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (48) -
webrick
/ httpauth / digestauth (24) -
webrick
/ httpauth / htdigest (48) -
webrick
/ httpauth / htpasswd (96) -
webrick
/ httpauth / userdb (36)
クラス
-
Etc
:: Group (24) -
Etc
:: Passwd (336) - File (12)
-
File
:: Stat (12) -
Net
:: FTP (48) -
Shell
:: Filter (42) - String (12)
-
WEBrick
:: HTTPAuth :: BasicAuth (36) -
WEBrick
:: HTTPAuth :: DigestAuth (12) -
WEBrick
:: HTTPAuth :: Htdigest (36) -
WEBrick
:: HTTPAuth :: Htpasswd (84)
モジュール
- Etc (84)
- FileTest (48)
- Kernel (12)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (36)
キーワード
-
$ DEFAULT _ INPUT (12) - < (6)
- > (6)
- >> (6)
- BasicAuth (12)
- DigestAuth (12)
- Htdigest (12)
- Htpasswd (12)
- Passwd (21)
- age (12)
- age= (12)
- change (12)
- change= (12)
- comment (12)
- comment= (12)
- crypt (12)
-
delete
_ passwd (24) - dir (12)
- dir= (12)
- directory? (12)
- each (42)
- endpwent (12)
- exist? (12)
- expire (12)
- expire= (12)
- flush (12)
- gecos (12)
- gecos= (12)
-
get
_ passwd (36) - getpwent (12)
- getpwnam (12)
- getpwuid (12)
- gid (12)
- gid= (12)
- login (12)
-
make
_ passwd (36) - name (12)
- name= (12)
- new (36)
- open (24)
- passwd= (24)
- quota (12)
- quota= (12)
- reload (12)
-
set
_ passwd (36) - setpwent (12)
- shell (18)
- shell= (12)
- size (12)
-
to
_ a (6) -
to
_ s (6) - uclass (12)
- uclass= (12)
- uid (12)
- uid= (12)
- userdb (24)
-
webrick
/ httpauth / htpasswd (12) -
world
_ readable? (36) - | (6)
- 制御構造 (12)
検索結果
先頭5件
-
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 式
右辺の条件が成立しない時に、左辺の式を評価してその結果を返します。
条件...