4559件ヒット
[1-100件を表示]
(0.032秒)
ライブラリ
- English (24)
- ビルトイン (3099)
- coverage (24)
- csv (12)
- e2mmap (12)
- fiber (8)
-
fiddle
/ import (12) -
irb
/ cmd / load (12) - json (36)
-
minitest
/ unit (1) -
net
/ ftp (12) -
net
/ http (48) -
net
/ imap (12) -
net
/ pop (168) -
net
/ smtp (36) - openssl (24)
- optparse (84)
- pstore (60)
- psych (51)
- rake (24)
- readline (36)
- resolv-replace (12)
-
ripper
/ lexer (10) -
rubygems
/ installer (12) - shell (6)
- socket (24)
- stringio (12)
- strscan (60)
- syslog (24)
- thwait (6)
- time (60)
- tmpdir (24)
- tracer (24)
- tsort (35)
-
webrick
/ httpproxy (12) - win32ole (96)
- zlib (216)
クラス
-
ARGF
. class (24) - Array (120)
- BasicObject (36)
- BasicSocket (12)
- Binding (12)
- CSV (12)
- Coverage (24)
- Data (18)
- Dir (192)
- Enumerator (48)
-
Enumerator
:: Lazy (60) - Exception (104)
- Fiber (54)
- File (72)
- FrozenError (6)
-
Gem
:: Installer (12) - IO (544)
-
IRB
:: ExtendCommand :: Load (12) - KeyError (16)
- MatchData (102)
- Module (300)
- Mutex (6)
-
Net
:: FTP (12) -
Net
:: HTTPResponse (12) -
Net
:: IMAP (12) -
Net
:: POP3 (60) -
Net
:: POPMail (108) -
Net
:: SMTP (36) - Numeric (93)
- Object (144)
-
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (84)
- PStore (60)
- Proc (62)
-
Rake
:: InvocationChain (12) - Random (36)
- Range (86)
- Regexp (12)
- Ripper (10)
- Shell (6)
- Socket (12)
- String (24)
- StringIO (12)
- StringScanner (60)
- Struct (48)
- SystemCallError (24)
- SystemExit (12)
- Thread (72)
-
Thread
:: Mutex (30) - ThreadsWait (6)
- Time (60)
- TracePoint (117)
- Tracer (24)
- UDPSocket (12)
- UnboundMethod (12)
-
WEBrick
:: HTTPProxyServer (12) - WIN32OLE (60)
-
WIN32OLE
_ EVENT (24) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipReader (192) -
Zlib
:: Inflate (24)
モジュール
- Comparable (12)
- Enumerable (108)
- Exception2MessageMapper (12)
-
Fiddle
:: Importer (12) - JSON (36)
- Kernel (381)
- Math (12)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (36) - ObjectSpace (24)
- Process (24)
-
Process
:: GID (24) -
Process
:: UID (24) - Psych (51)
-
Rake
:: TaskManager (12) - Readline (36)
- Signal (24)
- Syslog (24)
- TSort (35)
キーワード
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- <= (12)
- == (24)
- === (36)
- =~ (12)
- > (12)
- >= (12)
- Fail (6)
- Fiber (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - OCSP (12)
- Rubyの起動 (4)
- String (12)
- Thread (12)
- TracePoint (12)
- [] (114)
- []= (36)
- abort (36)
- accept (24)
-
add
_ filter (24) - all (36)
- append (24)
-
assert
_ send (1) - at (12)
- autoload (12)
- backtrace (12)
-
backtrace
_ locations (12) - begin (24)
- bind (12)
- binmode (12)
- byteoffset (6)
- call (12)
-
callee
_ id (12) - caller (36)
- cause (12)
- chdir (48)
- chunk (12)
- clamp (12)
-
class
_ variable _ get (12) - clone (24)
-
close
_ read (12) -
close
_ write (12) - commit (12)
-
completion
_ append _ character (12) -
completion
_ append _ character= (12) -
connect
_ nonblock (12) -
const
_ get (12) -
const
_ load (12) -
const
_ missing (12) - define (6)
-
define
_ finalizer (24) -
define
_ method (24) - delete (24)
-
delete
_ all (24) - dump (12)
- dup (24)
- each (36)
-
each
_ byte (48) -
each
_ line (24) -
ensure
_ dependency (12) -
enum
_ for (48) - errno (12)
- eval (24)
-
eval
_ script (7) - event (12)
- exception (24)
- execute (12)
- fail (36)
- fcntl (12)
- fdatasync (12)
- feed (12)
- fetch (84)
- first (24)
- flush (12)
- foreach (12)
- fork (36)
- gamma (12)
- generate (12)
- getc (12)
- gets (24)
-
handle
_ interrupt (12) - httpdate (12)
- include (12)
- inflate (24)
-
initialize
_ copy (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ method (12) -
instruction
_ sequence (7) - iso8601 (12)
- key (8)
- lambda (18)
- last (24)
- lex (5)
- lineno (24)
- lineno= (12)
- load (15)
-
load
_ stream (24) -
local
_ variable _ get (12) - loop (24)
- lstat (12)
- mail (36)
- max (48)
-
method
_ id (12) -
method
_ missing (12) - min (48)
- mktmpdir (24)
-
net
/ http (12) - new (164)
- next (12)
-
next
_ values (12) -
next
_ wait (6) - offset (24)
-
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ query _ interface (12) -
on
_ event (12) -
on
_ event _ with _ outargs (12) - open (72)
- overlap? (2)
- parameters (7)
- parse (36)
- parse! (12)
- path (12)
- peek (12)
-
peek
_ result (12) -
peek
_ values (12) - peep (12)
-
pending
_ interrupt? (12) - pid (12)
- pipe (96)
- pointer= (12)
- pop (36)
- popen (168)
- pos (12)
- pos= (36)
- pread (8)
- print (12)
- private (48)
-
private
_ constant (12) - proc (19)
- public (48)
-
public
_ constant (12) -
public
_ send (24) - pwrite (8)
- raise (66)
-
raised
_ exception (12) - rand (36)
- read (24)
- readbyte (24)
- readchar (24)
- readline (36)
- readlines (12)
- receiver (14)
- reject (24)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - rename (12)
-
renegotiation
_ cb= (12) - require (12)
-
require
_ relative (12) -
respond
_ to? (12) - result (12)
- resume (12)
-
return
_ value (12) - rewind (12)
- rfc2822 (12)
- rfc822 (12)
-
rinda
/ rinda (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) - seek (36)
- select (12)
- send (24)
-
send
_ mail (12) - sendcmd (12)
- sendmail (12)
-
set
_ backtrace (12) -
set
_ trace _ func (12) - setpgrp (12)
- setpriority (12)
-
singleton
_ method (12) - size (12)
- sizeof (12)
- sleep (12)
- start (36)
- stat (12)
- status (12)
- step (93)
- switch (48)
- sync (12)
- synchronize (12)
-
synthesize
_ file _ task (12) - sysseek (12)
- syswrite (12)
- tell (12)
- throw (12)
-
to
_ enum (48) - tokenize (5)
- transaction (12)
- transfer (12)
- trap (24)
- truncate (12)
- tsort (24)
-
tsort
_ each (23) -
unalias
_ command (6) -
undef
_ method (12) - ungetc (12)
- unlink (12)
- unlock (12)
- unparse (12)
- unscan (12)
- value (12)
- variables (12)
- warn (8)
- write (12)
- xmlschema (12)
- yield (24)
- スレッド (12)
- 制御構造 (12)
検索結果
先頭5件
-
MatchData
# end(n) -> Integer | nil (18143.0) -
n 番目の部分文字列終端のオフセットを返します。
...列を指定する数値。
@raise IndexError 範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.end(0) # => 6
p $~.end(1) # => 3
p $~.end(2) # => 6
p $~.end(3) # => nil
p $~.end(4) # => `end': index 4 out of matches (Ind... -
Range
# end -> object (18104.0) -
終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま せん。
終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま
せん。
//emlist[例][ruby]{
(10..20).last # => 20
(10...20).last # => 20
//}
@see Range#begin -
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (15143.0) -
登録されている情報を使用して、例外を発生させます。
...@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExcept......# =>
def foo
Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and... -
Gem
:: Installer # ensure _ dependency(spec , dependency) -> true (6206.0) -
インストールしようとしている Gem が依存関係を満たしている事を確認します。
...合は、例外 Gem::InstallError が発生します。
@param spec Gem::Specification のインスタンスを指定します。
@param dependency Gem::Dependency のインスタンスを指定します。
@raise Gem::InstallError 依存関係を満たしていない場合に発生します。... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (6136.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr......少なくとも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMT......Pエラーコード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します... -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (6136.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr......少なくとも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMT......Pエラーコード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します... -
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (6136.0) -
メールを送信します。
...。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
'from@example.com',
'to1@example.net', 'to2@example.net'
}
sendmail は obsolete です。
@param mailsrc メールの内容
@param from_addr......少なくとも1個)
@raise IOError すでにセッションが終了している場合に発生します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@raise Net::SMTPSyntaxError SMT......Pエラーコード500の場合に発生します
@raise Net::SMTPFatalError SMTPエラーコード5xxの場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します... -
Thread
# raise(error _ type , message , traceback) -> () (6131.0) -
自身が表すスレッドで強制的に例外を発生させます。
...r_type Kernel.#raise を参照してください。
@param message Kernel.#raise を参照してください。
@param traceback Kernel.#raise を参照してください。
Thread.new {
sleep 1
Thread.main.raise "foobar"
}
begin
sleep
rescue
p $!, $@
end
=> #<Runtim... -
Thread
. pending _ interrupt?(error = nil) -> bool (6130.0) -
非同期割り込みのキューが空かどうかを返します。
...iate) {
Thread.pass
}
end
=== 使い方
th = Thread.new{
Thread.handle_interrupt(RuntimeError => :on_blocking){
while true
...
# ここまでで割り込みが発生しても安全な状態になった。
if Thread.pending_interrupt?
Thread.......handle_interrupt(Object => :immediate){}
end
...
end
}
}
...
th.raise # スレッド停止。
この例は以下のように記述する事もできます。
flag = true
th = Thread.new{
Thread.handle_interrupt(RuntimeError => :on_blocking){
while tru......e
...
# ここまでで割り込みが発生しても安全な状態になった。
break if flag == false
...
end
}
}
...
flag = false # スレッド停止
@see Thread#pending_interrupt?, Thread.handle_interrupt...