681件ヒット
[1-100件を表示]
(0.141秒)
ライブラリ
- ビルトイン (28)
-
cgi
/ html (24) - coverage (8)
- mkmf (48)
-
net
/ http (24) -
net
/ imap (24) -
net
/ pop (12) -
net
/ smtp (24) - prime (96)
- rake (12)
-
rdoc
/ context (12) -
rubygems
/ dependency _ list (12) - socket (36)
- time (24)
- timeout (21)
-
webrick
/ httpauth / authenticator (168) -
webrick
/ httpauth / basicauth (12) -
webrick
/ httpauth / digestauth (12) -
webrick
/ httpstatus (24) - win32ole (12)
クラス
- Coverage (8)
-
Gem
:: DependencyList (12) -
Net
:: IMAP (24) -
Net
:: SMTP (12) - Object (28)
- Prime (48)
-
Prime
:: EratosthenesGenerator (36) -
RDoc
:: Context (12) -
Rake
:: FileList (12) - Socket (12)
- Time (24)
-
WEBrick
:: HTTPAuth :: BasicAuth (12) -
WEBrick
:: HTTPAuth :: DigestAuth (12) - WIN32OLE (12)
モジュール
-
CGI
:: HtmlExtension (24) - Kernel (48)
-
Socket
:: Constants (12) - Timeout (21)
-
WEBrick
:: HTTPAuth :: Authenticator (96) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (48) -
WEBrick
:: HTTPStatus (12)
キーワード
- ARGV (12)
- AuthException (24)
- AuthScheme (12)
- Authenticator (12)
- EratosthenesGenerator (12)
- HTTPNetworkAuthenticationRequired (12)
- HTTPProxyAuthenticationRequired (12)
- InfoField (12)
- POPAuthenticationError (12)
- ProxyAuthenticationRequired (12)
- ProxyAuthenticator (12)
-
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (12) - RequestField (24)
- ResponseField (24)
- ResponseInfoField (12)
- SMTPAuthenticationError (12)
-
SO
_ SECURITY _ AUTHENTICATION (24) - TCPSocket (12)
-
add
_ authenticator (12) - authenticate (48)
-
check
_ signedness (24) -
convertible
_ int (24) -
dependency
_ order (12) - each (48)
- exclude (12)
-
find
_ symbol (12) - getoptlong (12)
- html (24)
- logger (12)
- next (12)
- realm (12)
- rewind (12)
- start (8)
- strptime (24)
- succ (12)
- timeout (21)
- userdb (12)
-
webrick
/ httpauth / authenticator (12) -
yield
_ self (14) - 制御構造 (12)
- 演算子式 (12)
検索結果
先頭5件
-
Object
# then -> Enumerator (24208.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパ......quire 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator を返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件......にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Object
# then {|x| . . . } -> object (24208.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
...果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパ......quire 'json'
construct_url(arguments).
yield_self {|url| URI(url).read }.
yield_self {|response| JSON.parse(response) }
//}
ブロックなしで呼び出されたときは Enumerator を返します。
例えば条件によって値を捨てるのに使えます。
//emlist[][ruby]{
# 条件......にあうので何もしない
1.yield_self.detect(&:odd?) # => 1
# 条件に合わないので値を捨てる
2.yield_self.detect(&:odd?) # => nil
//}
@see Object#tap... -
Prime
:: EratosthenesGenerator (18000.0) -
Prime::PseudoPrimeGenerator の具象クラスです。 素数の生成にエラトステネスのふるいを使用しています。
...Prime::PseudoPrimeGenerator の具象クラスです。
素数の生成にエラトステネスのふるいを使用しています。... -
Net
:: IMAP . add _ authenticator(auth _ type , authenticator) -> () (12500.0) -
Net::IMAP#authenticate で使う 認証用クラスを設定します。
...t::IMAP#authenticate で使う
認証用クラスを設定します。
imap ライブラリに新たな認証方式を追加するために用います。
通常は使う必要はないでしょう。もしこれを用いて
認証方式を追加する場合は net/imap.rb の
Net::IMAP::LoginAut......henticator などを参考にしてください。
@param auth_type 認証の種類(文字列)
@param authenticator 認証クラス(Class オブジェクト)... -
Net
:: IMAP # authenticate(auth _ type , user , password) -> Net :: IMAP :: TaggedResponse (12300.0) -
AUTHENTICATE コマンドを送り、クライアントを認証します。
...AUTHENTICATE コマンドを送り、クライアントを認証します。
auth_type で利用する認証方式を文字列で指定します。
例:
imap.authenticate('LOGIN', user, password)
auth_type としては以下がサポートされています。
* "LOGIN"
* "PLAIN"
* "CRA......M-MD5"
* "DIGEST-MD5"
@param auth_type 認証方式を表す文字列
@param user ユーザ名文字列
@param password パスワード文字列
@see Net::IMAP#login... -
Net
:: SMTP # authenticate(user , secret , authtype) -> () (12300.0) -
認証を行います。
...ション開始(Net::SMTP#start)後、
メールを送る前に呼びだしてください。
通常は Net::SMTP.start や Net::SMTP#start で認証を
行うためこれを利用する必要はないはずです。
@param user 認証で使うアカウント名
@param secret 認証で使うパス......ワード
@param authtype 認証の種類(:plain, :login, :cram_md5 のいずれか)
@see Net::SMTP.start, Net::SMTP#start, Net::SMTP#auth_plain, Net::SMTP#auth_login, Net::SMTP#auth_cram_md5... -
Socket
:: Constants :: SO _ SECURITY _ AUTHENTICATION -> Integer (12200.0) -
@todo
...@todo... -
Socket
:: SO _ SECURITY _ AUTHENTICATION -> Integer (12200.0) -
@todo
...@todo... -
WEBrick
:: HTTPAuth :: BasicAuth # authenticate(request , response) -> bool (12200.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
...した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。... -
WEBrick
:: HTTPAuth :: DigestAuth # authenticate(request , response) -> true (12200.0) -
クライアントから送られてきたユーザ名とパスワードを認証します。 認証に失敗した場合は challenge を呼びます。
...した場合は challenge を呼びます。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。
@raise WEBrick::HTTPStatus::Unauthorized 認証に失敗した場合に発生します。...