529件ヒット
[1-100件を表示]
(0.105秒)
種類
- インスタンスメソッド (305)
- モジュール関数 (77)
- 特異メソッド (77)
- 文書 (48)
- 関数 (22)
ライブラリ
- ビルトイン (150)
- bigdecimal (22)
-
minitest
/ unit (1) -
net
/ pop (121) - openssl (44)
- psych (11)
-
rexml
/ document (11) -
rubygems
/ installer (55) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ uninstaller (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ httpauth / digestauth (11)
クラス
- BigDecimal (22)
-
Enumerator
:: Lazy (28) -
Gem
:: Installer (55) -
Gem
:: RemoteFetcher (11) -
Gem
:: Uninstaller (11) - Module (23)
-
Net
:: POP3 (22) -
Net
:: POPMail (99) - Object (11)
-
OpenSSL
:: Netscape :: SPKI (22) -
OpenSSL
:: SSL :: SSLContext (11) -
REXML
:: Document (11) - SystemCallError (11)
- TracePoint (11)
-
WEBrick
:: HTTPAuth :: BasicAuth (11) -
WEBrick
:: HTTPAuth :: DigestAuth (11)
モジュール
- Kernel (66)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: ASN1 (11) - Psych (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
callee
_ id (11) - caller (33)
- challenge (33)
- challenge= (11)
- ciphers= (11)
-
delete
_ all (22) - download (11)
-
ensure
_ dependency (11) - errno (11)
-
extract
_ files (11) - fail (11)
- filter (6)
-
find
_ all (11) -
generate
_ bin (11) - install (11)
- load (11)
- mail (33)
- mode (22)
- new (22)
- pop (33)
- public (23)
- remove (11)
-
respond
_ to? (11) -
ruby 1
. 8 . 4 feature (11) -
ruby
_ xmalloc (11) -
ruby
_ xrealloc (11) - select (11)
- skip (1)
- syscall (11)
- traverse (11)
検索結果
先頭5件
-
Kernel
. # raise(error _ type , message = nil , backtrace = caller(0) , cause: $ !) -> () (21333.0) -
例外を発生させます。 発生した例外は変数 $! に格納されます。また例外が 発生した時のスタックトレースは変数 $@ に格納され ます。発生した例外は rescue 節で捕捉できます。
...RuntimeError を発生させます。
//emlist[例][ruby]{
begin
open("nonexist")
rescue
raise #=> `open': No such file or directory - "nonexist" (Errno::ENOENT)
end
//}
引数を渡した場合は、例外メッセージ message を持った error_type の示す例外(省略時 RuntimeErro......例外ではないクラスやオブジェクトを指定した場合、
そのオブジェクトの exception メソッドが返す値を発生する例外にします。
その際、exception メソッドに引数として変数 message を渡すことができます。
@param error_type 発生......時のスタックトレースで、Kernel.#caller の戻り値と同じ
形式で指定しなければいけません。
@param cause 現在の例外($!)の代わりに Exception#cause に設定する例外を指定します。
@raise TypeError exception メソッドが例外オブジェクトを......Kernel.#caller の戻り値と同じ
形式で指定しなければいけません。
@param cause 現在の例外($!)の代わりに Exception#cause に設定する例外を指定します。
Exception オブジェクトまたは nil を指定できます。
@raise TypeError exception メソッ... -
Net
:: POPMail # all -> String (21233.0) -
メールを受信します。
...で順次書き込みます。
通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。
pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。
使用例:
require 'net/pop'
Net::POP3.start('pop.ex......Password') {|pop|
pop.mails.each do |m|
puts m.pop
end
}
ブロックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書......きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった... -
Net
:: POPMail # all {|str| . . . . } -> nil (21233.0) -
メールを受信します。
...で順次書き込みます。
通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。
pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。
使用例:
require 'net/pop'
Net::POP3.start('pop.ex......Password') {|pop|
pop.mails.each do |m|
puts m.pop
end
}
ブロックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書......きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった... -
Net
:: POPMail # all(io) -> object (21233.0) -
メールを受信します。
...で順次書き込みます。
通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。
pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。
使用例:
require 'net/pop'
Net::POP3.start('pop.ex......Password') {|pop|
pop.mails.each do |m|
puts m.pop
end
}
ブロックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書......きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった... -
Gem
:: Installer # install -> Gem :: Specification (18218.0) -
Gem をインストールします。
...che/<gem-version>.gem #=> インストールした Gem のコピー
gems/<gem-version>/... #=> インストール時に展開したファイル
specifications/<gem-version>.gemspec #=> gemspec ファイル
@return ロードされた Gem::Specification のイン......ます。
@raise Gem::InstallError 要求された Ruby のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError 要求された RubyGems のバージョンを満たしていない場合に発生します。
@raise Gem::InstallError Zlib::GzipFile::Error が... -
Enumerator
:: Lazy # find _ all {|item| . . . } -> Enumerator :: Lazy (12243.0) -
Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。
...Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:find_all>
1.step.lazy.select { |i| i.even? }.take(10).force
#... -
TracePoint
# callee _ id -> Symbol | nil (12206.0) -
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。 トップレベルであった場合は nil を返します。
...nil を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alia......s_name]
end
trace.enable do
C.new.alias_name
end
//}
@see TracePoint#method_id... -
Gem
:: Installer # generate _ bin (12106.0) -
Gem でインストールされる実行ファイルを作成します。
...Gem でインストールされる実行ファイルを作成します。
@raise Gem::FilePermissionError インストール先に書込み出来ない場合に発生します。... -
WEBrick
:: HTTPAuth :: BasicAuth # challenge(request , response) -> () (12106.0) -
クライアントにパスワードを要求するためにレスポンスに WWW-Authenticate ヘッダを 設定し、例外 WEBrick::HTTPStatus::Unauthorized を投げます。
...クライアントにパスワードを要求するためにレスポンスに WWW-Authenticate ヘッダを
設定し、例外 WEBrick::HTTPStatus::Unauthorized を投げます。
@raise WEBrick::HTTPStatus::Unauthorized このメソッドを呼ぶと必ず発生します。... -
Enumerator
:: Lazy # find _ all {|item| . . . } -> Enumerator :: Lazy (9243.0) -
Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。
...Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:find_all>
1.step.lazy.select { |i| i.even? }.take(10).force
#... -
Net
:: POPMail # mail {|str| . . . . } -> nil (9233.0) -
メールを受信します。
...で順次書き込みます。
通常 IO オブジェクトを渡します。
この場合引数として渡したオブジェクトを返します。
pop, all, mail はすべて同じ効果ですが、
all と mail は obsolete です。
使用例:
require 'net/pop'
Net::POP3.start('pop.ex......Password') {|pop|
pop.mails.each do |m|
puts m.pop
end
}
ブロックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書......きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった...