ライブラリ
- ビルトイン (4059)
- bigdecimal (84)
-
bigdecimal
/ util (36) - date (24)
- dbm (12)
- delegate (24)
- e2mmap (24)
- fiber (8)
- fiddle (48)
-
fiddle
/ import (12) - gdbm (12)
- getoptlong (24)
-
io
/ console (12) - ipaddr (8)
-
irb
/ cmd / load (12) -
irb
/ ext / math-mode (4) - logger (1)
- matrix (536)
-
minitest
/ spec (11) -
minitest
/ unit (19) - mkmf (24)
- monitor (24)
-
net
/ ftp (432) -
net
/ http (132) -
net
/ imap (168) -
net
/ pop (240) -
net
/ smtp (92) -
net
/ telnet (4) - observer (24)
- open-uri (24)
- openssl (1056)
- optparse (408)
- ostruct (12)
- pathname (47)
- prime (60)
- pstore (96)
- rake (36)
-
rake
/ packagetask (12) -
rdoc
/ markup (12) -
rdoc
/ rdoc (12) - resolv (84)
- resolv-replace (12)
-
rexml
/ parsers / pullparser (36) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) -
rinda
/ rinda (24) -
rinda
/ tuplespace (36) - rubygems (12)
-
rubygems
/ command (36) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ doc _ manager (24) -
rubygems
/ indexer (12) -
rubygems
/ installer (48) -
rubygems
/ package / tar _ input (12) -
rubygems
/ package / tar _ reader (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ package / tar _ writer (24) -
rubygems
/ remote _ fetcher (24) -
rubygems
/ security (12) -
rubygems
/ specification (12) -
rubygems
/ uninstaller (12) -
rubygems
/ user _ interaction (12) -
rubygems
/ validator (24) - sdbm (12)
- set (36)
- socket (252)
- stringio (450)
- strscan (60)
- thwait (6)
- tsort (59)
- uri (96)
- weakref (12)
-
webrick
/ httpauth / basicauth (24) -
webrick
/ httpauth / digestauth (24) -
webrick
/ httpservlet / abstract (12) -
webrick
/ httpservlet / filehandler (72) - win32ole (264)
-
yaml
/ dbm (72) - zlib (204)
クラス
-
ARGF
. class (110) - Addrinfo (24)
- Array (608)
- BasicObject (36)
- BasicSocket (84)
- BigDecimal (84)
- Binding (12)
- Complex (48)
- DBM (12)
- Data (3)
- Date (24)
- Delegator (24)
- Dir (50)
- Enumerator (60)
-
Enumerator
:: Lazy (178) - Exception (68)
- Fiber (42)
-
Fiddle
:: Handle (24) -
Fiddle
:: Pointer (24) - File (64)
-
File
:: Stat (12) - Float (45)
- GDBM (12)
-
Gem
:: Command (36) -
Gem
:: CommandManager (12) -
Gem
:: Commands :: LockCommand (12) -
Gem
:: DocManager (24) -
Gem
:: Indexer (12) -
Gem
:: Installer (48) -
Gem
:: Package :: TarInput (12) -
Gem
:: Package :: TarReader (12) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: Package :: TarWriter (12) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: RemoteFetcher (24) -
Gem
:: Security :: Policy (12) -
Gem
:: Specification (12) -
Gem
:: StreamUI (12) -
Gem
:: Uninstaller (12) -
Gem
:: Validator (24) - GetoptLong (24)
- Hash (68)
- IO (685)
- IPAddr (8)
- IPSocket (36)
-
IRB
:: Context (4) -
IRB
:: ExtendCommand :: Load (12) - Integer (123)
-
Logger
:: Application (1) - MatchData (106)
- Matrix (366)
- Module (288)
-
MonitorMixin
:: ConditionVariable (24) -
Net
:: FTP (432) -
Net
:: HTTP (48) -
Net
:: HTTPResponse (12) -
Net
:: IMAP (168) -
Net
:: POP3 (84) -
Net
:: POPMail (156) -
Net
:: SMTP (92) -
Net
:: Telnet (4) - Numeric (81)
- Object (191)
-
OpenSSL
:: ASN1 :: ObjectId (12) -
OpenSSL
:: BN (84) -
OpenSSL
:: Cipher (48) -
OpenSSL
:: Config (12) -
OpenSSL
:: Engine (24) -
OpenSSL
:: Netscape :: SPKI (96) -
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: OCSP :: Request (24) -
OpenSSL
:: PKCS7 (60) -
OpenSSL
:: PKey :: DH (12) -
OpenSSL
:: PKey :: DSA (12) -
OpenSSL
:: PKey :: EC (48) -
OpenSSL
:: PKey :: EC :: Group (24) -
OpenSSL
:: PKey :: EC :: Point (12) -
OpenSSL
:: PKey :: PKey (24) -
OpenSSL
:: PKey :: RSA (48) -
OpenSSL
:: SSL :: SSLContext (12) -
OpenSSL
:: SSL :: SSLServer (12) -
OpenSSL
:: SSL :: SSLSocket (48) -
OpenSSL
:: X509 :: Attribute (60) -
OpenSSL
:: X509 :: CRL (60) -
OpenSSL
:: X509 :: Certificate (108) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) -
OpenSSL
:: X509 :: Request (12) -
OpenSSL
:: X509 :: Revoked (12) -
OpenSSL
:: X509 :: Store (84) - OpenStruct (12)
- OptionParser (348)
- PStore (96)
- Pathname (47)
- Prime (12)
-
Prime
:: PseudoPrimeGenerator (36) - Proc (48)
-
RDoc
:: Markup (12) -
RDoc
:: RDoc (12) -
REXML
:: Parsers :: PullParser (36) -
REXML
:: Parsers :: SAX2Parser (12) -
REXML
:: Parsers :: StreamParser (12) -
REXML
:: Parsers :: UltraLightParser (12) -
Rake
:: InvocationChain (12) -
Rake
:: PackageTask (12) - Random (48)
- Range (233)
- Rational (97)
- Resolv (24)
-
Resolv
:: DNS (36) -
Resolv
:: Hosts (24) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (24) - SDBM (12)
- Set (48)
- Socket (48)
-
Socket
:: AncillaryData (36) - String (281)
- StringIO (450)
- StringScanner (60)
- Struct (24)
- SystemCallError (12)
- SystemExit (12)
- TCPServer (24)
- Thread (108)
-
Thread
:: Mutex (40) - ThreadGroup (12)
- ThreadsWait (6)
- TracePoint (105)
- UDPSocket (12)
-
URI
:: FTP (12) -
URI
:: Generic (60) -
URI
:: MailTo (24) - Vector (170)
-
WEBrick
:: HTTPAuth :: BasicAuth (24) -
WEBrick
:: HTTPAuth :: DigestAuth (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (24) -
WEBrick
:: HTTPServlet :: FileHandler (48) - WIN32OLE (132)
-
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (48) -
WIN32OLE
_ VARIANT (36) - WeakRef (12)
-
YAML
:: DBM (72) -
Zlib
:: GzipReader (192) -
Zlib
:: Inflate (12)
モジュール
- Comparable (72)
- Enumerable (156)
- Exception2MessageMapper (24)
-
Fiddle
:: Importer (12) - Kernel (36)
-
MiniTest
:: Assertions (19) -
Net
:: HTTPHeader (72) - Observable (24)
-
OpenSSL
:: Buffering (48) -
OpenSSL
:: SSL :: SocketForwarder (24) -
OpenURI
:: OpenRead (24) -
OptionParser
:: Arguable (60) -
Rake
:: TaskManager (24) - TSort (59)
キーワード
- & (12)
- * (72)
- ** (24)
- + (48)
- - (48)
-
/ (36) - < (12)
- << (12)
- <= (12)
- === (12)
- > (12)
- >= (12)
- Fail (6)
- [] (246)
- []= (194)
-
_ _ getobj _ _ (24) -
_ _ setobj _ _ (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) - abort (24)
- accept (24)
-
accept
_ nonblock (24) - acct (12)
- add (24)
-
add
_ cert (12) -
add
_ certid (12) -
add
_ certificate (12) -
add
_ crl (24) -
add
_ entry (12) -
add
_ extension (36) -
add
_ file (12) -
add
_ observer (12) -
add
_ path (12) -
add
_ revoked (12) -
add
_ value (12) -
add
_ word _ pair (12) - addr (12)
- adjugate (12)
- advise (12)
- all (36)
-
angle
_ with (12) - antisymmetric? (7)
- append (24)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - at (12)
- atime (12)
-
auth
_ only (12) - authenticate (24)
- backtrace (12)
-
backtrace
_ locations (12) - begin (24)
- between? (12)
- birthtime (23)
- bsearch (48)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- bytes (21)
- bytesplice (5)
- call (12)
-
callee
_ id (12) - cause (12)
- ceil (12)
- certificates= (12)
- challenge (36)
- challenge= (12)
- chars (28)
- chdir (12)
-
check
_ closed (12) - children (12)
- chr (24)
- chunk (12)
-
chunk
_ while (9) - cipher (12)
- clamp (12)
-
class
_ variable _ get (12) -
clear
_ bit! (12) - clone (12)
- close (2)
-
close
_ read (24) - coerce (12)
- cofactor (24)
-
cofactor
_ expansion (12) - collect (12)
- collect2 (24)
-
collect
_ concat (12) - combination (24)
- complain (12)
- connect (12)
-
connect
_ address (12) -
connect
_ nonblock (12) -
const
_ get (12) -
const
_ missing (12) -
content
_ length (12) - create (12)
- cycle (24)
- decrypt (24)
- define (12)
-
define
_ method (24) - delete (60)
- delete! (12)
-
delete
_ at (12) -
delete
_ if (12) -
deprecate
_ constant (12) - det (12)
- detect (24)
- determinant (12)
- diagonal? (12)
- digest (12)
- digits (12)
- dir (24)
- div (12)
- dlload (12)
-
do
_ GET (24) -
do
_ OPTIONS (12) -
do
_ POST (12) - document (12)
- dot (12)
- download (12)
- drop (12)
-
dsa
_ sign _ asn1 (12) -
dsa
_ verify _ asn1 (12) - dup (12)
- each (204)
- each2 (24)
-
each
_ byte (72) -
each
_ char (48) -
each
_ child (14) -
each
_ line (120) -
each
_ mail (12) - eigen (12)
- eigensystem (12)
- encrypt (12)
- end (24)
-
enhance
_ with _ matching _ rule (12) -
ensure
_ dependency (12) - entries (19)
-
entrywise
_ product (8) -
enum
_ for (48) - environment (12)
- eof (24)
- eof? (24)
- errno (12)
-
eval
_ script (7) - event (12)
- examine (12)
- exception (12)
- execute (24)
- expunge (12)
- extensions= (12)
-
extract
_ entry (12) -
extract
_ files (12) - fail (6)
- fcntl (24)
- fdatasync (12)
- feed (12)
- fetch (164)
-
fetch
_ values (22) - fileno (12)
- filter (7)
-
filter
_ map (6) - find (24)
-
find
_ all (12) -
find
_ command (12) - first (48)
-
first
_ minor (12) -
flat
_ map (12) - flatten (24)
- flatten! (24)
- flock (12)
- floor (12)
- flunk (1)
- fragment= (12)
- gem (12)
-
generate
_ bin (12) -
generate
_ key (12) -
generate
_ key! (12) - get (24)
-
get
_ all _ gem _ names (12) -
get
_ one _ gem _ name (12) - getaddress (36)
- getbinaryfile (24)
- getbyte (12)
- getc (24)
- getname (36)
- getnameinfo (12)
- getopts (36)
- getquota (12)
- getquotaroot (12)
- getresource (12)
- gets (51)
- gettextfile (24)
-
hadamard
_ product (8) - header (12)
- headers= (12)
- help (12)
- hermitian? (12)
- hostname= (12)
- hstack (12)
- inflate (12)
-
initialize
_ copy (12) -
inner
_ product (12) - insert (12)
- inspect (12)
- install (12)
-
instance
_ eval (24) -
instance
_ method (12) -
instruction
_ sequence (7) - int (12)
- intersection (6)
- invoke (12)
- ioctl (12)
-
ip
_ pktinfo (12) - isatty (12)
- issuer= (12)
- join (36)
-
laplace
_ expansion (12) - last (48)
-
last
_ update= (12) -
library
_ name (12) - lineno (24)
- lineno= (12)
- lines (35)
- list (24)
- listen (24)
-
local
_ variable _ get (12) - lock (10)
- login (24)
- ls (24)
- lstat (12)
- mail (36)
- mails (12)
-
major
_ version (24) -
make
_ affine! (12) -
make
_ partial _ content (12) - map (12)
- map2 (12)
-
marshal
_ load (12) -
mask
_ bits! (12) -
math
_ mode= (4) - max (94)
- mdtm (12)
- method (12)
-
method
_ id (12) -
method
_ missing (24) - min (94)
- mkdir (12)
-
mod
_ add (12) - modifiable (12)
- mtime (12)
- mult (12)
-
must
_ be _ close _ to (1) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
must
_ be _ same _ as (1) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
must
_ equal (1) -
must
_ match (1) -
must
_ raise (1) -
must
_ respond _ to (1) -
must
_ throw (1) -
n
_ mails (12) - name= (10)
- next (24)
-
next
_ update= (12) -
next
_ values (12) -
next
_ wait (6) - normal? (12)
- normalize (12)
-
not
_ after= (12) -
not
_ before= (12) -
notify
_ observers (12) - offset (24)
- oid (24)
- oid= (12)
-
ole
_ activex _ initialize (12) -
ole
_ query _ interface (12) - on (144)
-
on
_ event (12) -
on
_ event _ with _ outargs (12) - opaque= (12)
- open (24)
-
open
_ uri _ or _ path (12) - ord (12)
- order (48)
- order! (48)
- orthogonal? (12)
- overlap? (2)
- padding= (12)
- parameters (7)
- paranoid (12)
- parse (60)
- parse! (24)
- password= (12)
- path (32)
- path= (12)
- peek (36)
-
peek
_ values (12) - peep (12)
- peeraddr (12)
- permutation (24)
- permutation? (12)
- permute (24)
- permute! (24)
-
pkcs5
_ keyivgen (12) - pointer= (12)
- pop (60)
- pos= (24)
-
post
_ connection _ check (12) - pow (22)
- pread (8)
- prefix= (8)
-
prime
_ division (24) -
prime
_ fasttest? (12) - print (36)
- printf (24)
- private (48)
-
private
_ constant (12) -
private
_ decrypt (12) -
private
_ encrypt (12) -
private
_ key= (12) - protected (36)
- public (36)
-
public
_ constant (12) -
public
_ decrypt (12) -
public
_ encrypt (12) -
public
_ instance _ method (12) -
public
_ key (24) -
public
_ key= (24) -
public
_ method (12) -
public
_ send (24) - pull (12)
- put (24)
- putbinaryfile (24)
- putc (12)
- puts (24)
- puttextfile (24)
- quo (12)
- raise (30)
-
raised
_ exception (12) - rand (36)
- range (12)
-
range
_ length (12) - rationalize (24)
- raw (12)
- read (96)
-
read
_ nonblock (36) - readbyte (36)
- readchar (60)
- readline (108)
- readlines (60)
- readpartial (72)
- ready (12)
- recv (12)
-
recv
_ nonblock (12) - recvfrom (24)
-
recvfrom
_ nonblock (12) - regular? (12)
- rehash (12)
- reject (24)
-
relative
_ path _ from (12) - remove (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - rename (24)
-
renegotiation
_ cb= (12) - reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (36)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) - request (24)
-
respond
_ to? (12) - resume (12)
- retrbinary (24)
-
return
_ value (12) -
reverse
_ each (4) - rewind (36)
- rmdir (12)
- root? (12)
- roots (12)
- rotate (12)
- rotate! (12)
- round (33)
- run (12)
-
run
_ rdoc (12) - sample (48)
- select (24)
- send (24)
-
send
_ mail (12) - sendmail (12)
- service (24)
-
set
_ backtrace (12) -
set
_ bit! (12) -
set
_ default _ paths (12) -
set
_ generator (12) - setproperty (24)
- setquota (12)
- setsockopt (36)
-
setup
_ rdoc (12) - shift (24)
- shutdown (12)
- sign (36)
-
signature
_ algorithm (12) -
singleton
_ class (12) -
singleton
_ method (12) - singular? (12)
- site (12)
- size (13)
-
skew
_ symmetric? (7) - skip (1)
- sleep (10)
- slice (72)
- sqrt (12)
- start (81)
- stat (12)
- status (60)
- step (81)
- storbinary (24)
- store (12)
- sub (12)
- subject (12)
- subject= (12)
- subscribe (12)
- subtract (12)
- succ (12)
- sym (12)
- symmetric? (12)
- sync= (12)
- synchronize (10)
-
synthesize
_ file _ task (12) - sysread (60)
- sysverify (12)
- take (36)
- terminate (12)
-
terminate
_ interaction (12) - to= (12)
-
to
_ a (7) -
to
_ d (36) -
to
_ der (12) -
to
_ enum (48) -
to
_ f (12) -
to
_ i (36) -
to
_ int (12) -
to
_ path (8) -
to
_ pem (12) -
to
_ r (12) -
to
_ s (36) - top (12)
- tr (12)
- trace (12)
- transaction (12)
- transfer (12)
- truncate (36)
-
try
_ do (24) - tsort (12)
-
tsort
_ each (23) -
tsort
_ each _ child (12) -
tsort
_ each _ node (12) - tty? (12)
- typecode= (12)
-
undef
_ method (12) - ungetc (36)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unitary? (12)
-
unix
_ path (12) -
unix
_ rights (12) - unlock (10)
- unscan (12)
- unsubscribe (12)
- update (12)
- validate (12)
- value (24)
- value= (36)
-
values
_ at (12) - variables (12)
- verify (60)
-
verify
_ gem (24) -
verify
_ gem _ file (12) - version (12)
- version= (12)
- wait (12)
-
wait
_ while (12) - waitfor (4)
- wakeup (12)
- with (3)
- write (44)
-
write
_ nonblock (12) - yield (12)
- zip (24)
- | (12)
検索結果
先頭5件
- Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () - Pathname
# relative _ path _ from(base _ directory) -> Pathname - MiniTest
:: Assertions # assert _ raises(*args) { . . . } -> true - Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] - Gem
:: CommandManager # find _ command(command _ name) -> Gem :: Command | nil
-
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (21232.0) -
登録されている情報を使用して、例外を発生させます。
...aram exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2Messa......apper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>
def foo
Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Ra......ise Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and 5 (Foo::NewExceptionClass)
# という例外が発生します。... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (15307.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self へ......の相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
MiniTest
:: Assertions # assert _ raises(*args) { . . . } -> true (15207.0) -
与えられたブロックを評価中に与えられた例外が発生する場合、検査にパスしたことになります。
...たことになります。
@param args 与えられたブロックを評価中に発生する可能性のある例外クラスを一つ以上指定します。
最後の引数は、メッセージを指定することができます。
@raise MiniTest::Assertion 与えられたブロ... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (12407.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...on#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.n......w(2000, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in......`get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Gem
:: CommandManager # find _ command(command _ name) -> Gem :: Command | nil (12307.0) -
登録されているコマンドからマッチしたものを返します。
...れているコマンドからマッチしたものを返します。
@param command_name コマンド名を文字列で指定します。
@return Gem::Command のサブクラスのインスタンスを返します。
@raise RuntimeError マッチする可能性のあるコマンドが複数あ... -
Thread
# raise(error _ type , message , traceback) -> () (12226.0) -
自身が表すスレッドで強制的に例外を発生させます。
...を発生させます。
@param error_type Kernel.#raise を参照してください。
@param message Kernel.#raise を参照してください。
@param traceback Kernel.#raise を参照してください。
Thread.new {
sleep 1
Thread.main.raise "foobar"
}
begin
sleep
res......cue
p $!, $@
end
=> #<RuntimeError: foobar>
["-:3"]... -
TracePoint
# raised _ exception -> Exception (12219.0) -
発生した例外を返します。
...す。
@raise RuntimeError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
trace.enable
begin... -
Fiber
# raise -> object (12216.0) -
selfが表すファイバーが最後に Fiber.yield を呼んだ場所で例外を発生させます。
...終了している場合、
FiberError が発生します。
引数を渡さない場合、RuntimeError が発生します。
message 引数を渡した場合、message 引数をメッセージとした RuntimeError
が発生します。
その他のケースでは、最初の引数は Exception......@param message 例外のメッセージとなる文字列です。
@param exception 発生させる例外です。
@param backtrace 例外発生時のスタックトレースです。文字列の配列で指定します。
//emlist[例][ruby]{
f = Fiber.new { Fiber.yield }
f.resume
f.raise "Error......!" # => Error! (RuntimeError)
//}
//emlist[ファイバー内のイテレーションを終了させる例][ruby]{
f = Fiber.new do
loop do
Fiber.yield(:loop)
end
:exit
end
p f.resume # => :loop
p f.raise StopIteration # => :exit
//}... -
Fiber
# raise(exception , message = nil , backtrace = nil) -> object (12216.0) -
selfが表すファイバーが最後に Fiber.yield を呼んだ場所で例外を発生させます。
...終了している場合、
FiberError が発生します。
引数を渡さない場合、RuntimeError が発生します。
message 引数を渡した場合、message 引数をメッセージとした RuntimeError
が発生します。
その他のケースでは、最初の引数は Exception......@param message 例外のメッセージとなる文字列です。
@param exception 発生させる例外です。
@param backtrace 例外発生時のスタックトレースです。文字列の配列で指定します。
//emlist[例][ruby]{
f = Fiber.new { Fiber.yield }
f.resume
f.raise "Error......!" # => Error! (RuntimeError)
//}
//emlist[ファイバー内のイテレーションを終了させる例][ruby]{
f = Fiber.new do
loop do
Fiber.yield(:loop)
end
:exit
end
p f.resume # => :loop
p f.raise StopIteration # => :exit
//}... -
Fiber
# raise(message) -> object (12216.0) -
selfが表すファイバーが最後に Fiber.yield を呼んだ場所で例外を発生させます。
...終了している場合、
FiberError が発生します。
引数を渡さない場合、RuntimeError が発生します。
message 引数を渡した場合、message 引数をメッセージとした RuntimeError
が発生します。
その他のケースでは、最初の引数は Exception......@param message 例外のメッセージとなる文字列です。
@param exception 発生させる例外です。
@param backtrace 例外発生時のスタックトレースです。文字列の配列で指定します。
//emlist[例][ruby]{
f = Fiber.new { Fiber.yield }
f.resume
f.raise "Error......!" # => Error! (RuntimeError)
//}
//emlist[ファイバー内のイテレーションを終了させる例][ruby]{
f = Fiber.new do
loop do
Fiber.yield(:loop)
end
:exit
end
p f.resume # => :loop
p f.raise StopIteration # => :exit
//}... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (12213.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.set_back......trace(["dummy1", "dummy2"])
$!.backtrace # => ["dummy1", "dummy2"]
end
//}... -
REXML
:: Parsers :: UltraLightParser # parse -> Array (12213.0) -
XML 文書のパース結果を配列による木で返します。
...。
返される木構造配列については lib:rexml/parsers/ultralightparser#nodes
を参照してください。
@raise REXML::ParseException XML文書のパースに失敗した場合に発生します
@raise REXML::UndefinedNamespaceException XML文書のパース中に、定義されて...