種類
ライブラリ
- English (275)
- ビルトイン (3500)
- benchmark (11)
- bigdecimal (34)
- continuation (44)
- csv (11)
- delegate (11)
- digest (11)
-
drb
/ extservm (11) - e2mmap (18)
-
irb
/ cmd / load (22) -
irb
/ xmp (22) - json (33)
-
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (1001)
- open-uri (72)
- open3 (22)
- openssl (22)
- pathname (22)
- pp (15)
- profiler (6)
- psych (22)
- pty (44)
- rake (143)
- rubygems (11)
-
rubygems
/ commands / lock _ command (11) -
rubygems
/ custom _ require (11) -
rubygems
/ timer (11) - scanf (30)
- shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (88)
- stringio (99)
- syslog (99)
- tempfile (50)
-
test
/ unit (1) - timeout (41)
- tracer (33)
- un (143)
- uri (11)
-
webrick
/ utils (11) - win32ole (11)
- zlib (44)
クラス
-
ARGF
. class (176) - Array (66)
- BasicObject (22)
-
Benchmark
:: Tms (11) - BigDecimal (12)
- Binding (11)
- CSV (11)
- Complex (22)
- Continuation (22)
-
DRb
:: ExtServManager (11) - Enumerator (11)
- Exception (22)
- File (33)
- IO (429)
-
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Require (11) - LoadError (11)
- Method (11)
- Module (165)
- Object (188)
-
OpenSSL
:: BN (11) - Proc (18)
- Random (95)
- Rational (11)
- Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (44)
- String (78)
- StringIO (99)
- SystemExit (11)
- Tempfile (50)
- Thread (88)
-
Thread
:: Backtrace :: Location (11) - TracePoint (11)
- Tracer (33)
- UnboundMethod (21)
- UncaughtThrowError (20)
-
WIN32OLE
_ EVENT (11) - XMP (11)
-
Zlib
:: GzipWriter (44)
モジュール
- Exception2MessageMapper (18)
- FileTest (11)
- FileUtils (22)
- Kernel (3472)
-
MiniTest
:: Assertions (2) - Open3 (22)
-
OpenSSL
:: Buffering (11) - OpenURI (22)
-
OpenURI
:: OpenRead (22) - PTY (44)
- Process (88)
-
Socket
:: Constants (44) - Syslog (99)
-
Test
:: Unit (1) - Timeout (19)
- URI (14)
-
WEBrick
:: Utils (11) - Warning (16)
キーワード
-
$ ! (11) -
$ " (11) -
$ $ (11) -
$ & (11) -
$ & # 39; (11) -
$ * (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (11) -
$ -W (11) -
$ -a (11) -
$ -d (11) -
$ -i (11) -
$ -l (11) -
$ -p (11) -
$ -v (11) -
$ -w (11) -
$ . (11) -
$ / (11) -
$ 0 (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (11) -
$ ; (11) -
$ < (11) -
$ = (11) -
$ > (11) -
$ ? (11) -
$ @ (11) -
$ ARGV (11) -
$ CFLAGS (11) -
$ CHILD _ STATUS (11) -
$ DEBUG (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FILENAME (11) -
$ FS (11) -
$ IGNORECASE (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ KCODE (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ LDFLAGS (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ MATCH (11) -
$ NR (11) -
$ OFS (11) -
$ ORS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ PID (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ PROCESS _ ID (11) -
$ PROGRAM _ NAME (11) -
$ RS (11) -
$ SAFE (11) -
$ VERBOSE (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) -
$ archdir (11) -
$ defs (11) -
$ hdrdir (11) -
$ libdir (11) -
$ libs (11) -
$ sitearchdir (11) -
$ sitelibdir (11) -
$ srcdir (11) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) -
$ topdir (11) -
$ ~ (11) - % (11)
-
AI
_ V4MAPPED _ CFG (22) - ARGF (22)
- Array (11)
- BasicObject (11)
- BigDecimal (22)
- Binding (11)
- CONFIG (11)
- Complex (33)
- Continuation (11)
- Converters (11)
- DATA (11)
- DEFAULT (7)
- DefaultLoader (11)
- DelegateClass (11)
- Digest (11)
- File (11)
- Float (11)
- Hash (11)
- Integer (11)
- JSON (11)
- LoadError (11)
- Location (11)
- LockCommand (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Pathname (22)
- Proc (11)
-
Profiler
_ _ (6) - Rational (22)
- Rubyの起動 (11)
- Ruby用語集 (11)
- RuntimeError (11)
-
SCRIPT
_ LINES _ _ (11) -
SO
_ ATTACH _ FILTER (22) -
SO
_ DETACH _ FILTER (22) -
SO
_ NKE (22) - Scanf (6)
- String (11)
- Task (11)
- ThreadError (11)
- TracePoint (11)
- URI (11)
- UncaughtThrowError (10)
- Win32ネイティブ版Rubyの互換性問題 (11)
- [] (29)
-
_ _ callee _ _ (11) -
_ _ dir _ _ (11) -
_ _ method _ _ (11) - ` (11)
- abort (44)
-
add
_ filter (22) -
add
_ trace _ func (11) - alert (11)
-
alias
_ method (11) - ancestors (11)
-
arg
_ config (11) -
assert
_ throws (1) -
at
_ exit (11) - autoload (22)
- autoload? (22)
-
backtrace
_ locations (22) - bigdecimal (11)
-
bind
_ call (10) - binding (11)
- binread (11)
- binwrite (11)
-
block
_ given? (11) - call (11)
- callcc (11)
- caller (33)
-
caller
_ locations (22) - catch (22)
-
cc
_ command (11) -
check
_ signedness (22) -
check
_ sizeof (22) - chmod (11)
- chomp (11)
- chop (11)
- class (11)
-
class
_ eval (22) -
class
_ variables (11) - command (11)
-
const
_ defined? (11) - constants (22)
- convert (11)
-
convertible
_ int (22) - cp (11)
-
cpp
_ command (11) - create (20)
-
create
_ header (11) -
create
_ makefile (11) -
create
_ tmpsrc (11) - crit (11)
- debug (11)
-
def
_ exception (6) -
defined
_ class (11) - delegate (11)
-
depend
_ rules (11) - desc (11)
- describe (1)
-
dir
_ config (11) - directory (11)
-
drb
/ extservm (11) -
dummy
_ makefile (11) -
egrep
_ cpp (22) - emerg (11)
-
enable
_ config (22) - err (11)
- eval (33)
- exception (22)
- exec (44)
- execute (22)
- exit (33)
- exit! (22)
- fail (33)
- file (11)
-
file
_ create (11) -
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ type (22) -
for
_ fd (11) - foreach (22)
- fork (44)
- format (22)
- freeze (11)
- gem (11)
- getpty (22)
- gets (44)
-
global
_ variables (11) - gsub (33)
-
have
_ devel? (11) -
have
_ framework (22) -
have
_ func (22) -
have
_ header (22) -
have
_ library (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) -
have
_ var (22) - help (11)
- hex (11)
- httpd (11)
- identical? (11)
- import (11)
- include (11)
- info (11)
- inspect (11)
- install (11)
-
install
_ files (11) -
install
_ rb (11) -
instance
_ eval (22) -
instance
_ variables (11) - irb (11)
-
irb
/ xmp (11) - iterator? (11)
- j (11)
- jj (11)
- kill (22)
- lambda (17)
- libpathflag (11)
-
link
_ command (11) - ln (11)
- load (11)
-
local
_ variables (11) - log (11)
-
log
_ src (11) - loop (22)
- mathn (4)
-
merge
_ libs (11) - method (11)
-
minitest
/ autorun (11) -
minitest
/ unit (1) - mkdir (11)
- mkmf (22)
- modified? (11)
-
module
_ eval (22) - multitask (11)
-
must
_ throw (1) - mv (11)
- namespace (11)
- new (84)
- next (11)
- notice (11)
- oct (11)
- open (158)
- open-uri (6)
-
open
_ uri (22) - owner (22)
- p (11)
- path (11)
- popen (154)
- popen3 (22)
- pp (22)
-
pretty
_ print (22) - print (66)
- printf (77)
- proc (18)
-
psych
_ y (11) -
public
_ instance _ method (11) - putc (44)
- puts (55)
- raise (44)
- rand (88)
-
rb
_ String (11) -
rb
_ exec _ end _ proc (11) -
rb
_ f _ array (11) -
rb
_ f _ float (11) -
rb
_ f _ hash (11) -
rb
_ f _ integer (11) -
rb
_ f _ string (11) -
rb
_ load (11) - read (33)
- readline (44)
- readlines (77)
- rect (11)
- rectangular (11)
-
remove
_ const (11) - reopen (55)
- require (22)
-
require
_ relative (11) - rm (11)
-
rm
_ f (11) -
rm
_ rf (11) - rmdir (11)
- ruby (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ custom _ require (11) - rule (11)
-
run
_ config (6) - sample (44)
- scanf (24)
- select (22)
- send (22)
-
set
_ close _ on _ exec (11) -
set
_ trace _ func (33) -
setup
_ argv (1) - sh (11)
- shuffle! (22)
-
singleton
_ method (11) - skip (1)
- sleep (22)
- spawn (77)
- sprintf (11)
- sprintf フォーマット (11)
- srand (44)
- status (11)
- sub (22)
- syscall (11)
- sysopen (11)
- system (44)
- tag (10)
- task (11)
- terminate (11)
- test (40)
- throw (11)
- time (11)
- timeout (41)
-
to
_ a (44) -
to
_ ary (11) -
to
_ f (11) -
to
_ i (11) -
to
_ int (11) -
to
_ r (11) -
to
_ s (22) -
to
_ str (11) - touch (11)
-
trace
_ var (33) - tracer (11)
- trap (22)
-
try
_ compile (22) -
try
_ constant (22) -
try
_ cpp (22) -
try
_ do (22) -
try
_ func (22) -
try
_ link (22) -
try
_ run (22) -
try
_ static _ assert (22) -
try
_ type (22) -
try
_ var (22) - ubygems (4)
-
untrace
_ var (11) - value (10)
- verbose= (11)
-
wait
_ writable (11) - warn (27)
- warning (11)
-
webrick
/ https (11) -
webrick
/ httpservlet (11) -
with
_ config (22) -
with
_ werror (22) - write (22)
- xmp (11)
- xpopen (22)
- xsystem (11)
- y (11)
- このマニュアルのヘルプ (11)
- クラス/メソッドの定義 (11)
- セキュリティモデル (11)
- 制御構造 (11)
- 変数と定数 (11)
- 手続きオブジェクトの挙動の詳細 (11)
- 環境変数 (11)
- 終了処理 (11)
検索結果
先頭5件
-
Kernel
. # catch(tag) {|tag| . . . . } -> object (21028.0) -
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
...
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
ブロックの実行中に tag と同一のオブジェクトを引数とする Kernel.#throw が行われた
場合は、その throw の第二引数を戻り値として、ブロック......@return ブロックの返り値か、対応するthrowの第二引数を返り値として返します。
//emlist[例][ruby]{
result = catch do |tag|
for i in 1..2
for j in 1..2
for k in 1..2
throw tag, k
end
end
end
end
p result #=> 1
//}
@see Kernel.#throw... -
Kernel
. # readlines(rs = $ / ) -> [String] (21028.0) -
ARGFを Kernel.#gets(rs) でEOFまで読み込んで、その各行を要素としてもつ配列を返します。 行の区切りは引数 rs で指定した文字列になります。
...ARGFを Kernel.#gets(rs) でEOFまで読み込んで、その各行を要素としてもつ配列を返します。
行の区切りは引数 rs で指定した文字列になります。
rs に nil を指定すると行区切りなしとみなします。
空文字列 "" を指定すると連続......s("") #=> ["hello\nit\n\n", "common\n", "hello\nit\n\n", "common\n"]
ARGV << 'b.txt' << 'b.txt'
p readlines('it') #=> ["hello\nit", "\n\ncommon\n", "hello\nit", "\n\ncommon\n"]
p readlines #=> []
//}
//emlist[b.txt][ruby]{
hello
it
common
//}
@see $/,ARGF,Kernel.#gets, Kernel.#readline... -
Kernel
. # srand -> Integer (21028.0) -
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
...
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
seed に整数を指定するとその絶対値を乱数の種に設定します。
それ以外の値を指定した場合は seed.to_int が指定されたものとして扱いま......す。
seed に既知の値を与えると、以前の Kernel.#rand の値を再現できます。
seed が省略された時には
現在の時刻やプロセス ID、srand を呼び出した回数、
また可能なら /dev/urandom から読み出したデータなどを元に種を作ります......) #=> 0.938911141393347
p rand(0) #=> 0.915824970865251
seeds << srand(num)
p rand(6) #=> 3
p rand(6) #=> 0
p rand(0) #=> 0.445804380918972
p rand(0) #=> 0.422248634121701
seeds << srand
p seeds #=> [455675, 2995620310703489221660585195204777696, 455675]
//}
@see Kernel.#rand, Random::DEFAULT... -
Kernel
. # srand(seed) -> Integer (21028.0) -
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
...
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
seed に整数を指定するとその絶対値を乱数の種に設定します。
それ以外の値を指定した場合は seed.to_int が指定されたものとして扱いま......す。
seed に既知の値を与えると、以前の Kernel.#rand の値を再現できます。
seed が省略された時には
現在の時刻やプロセス ID、srand を呼び出した回数、
また可能なら /dev/urandom から読み出したデータなどを元に種を作ります......) #=> 0.938911141393347
p rand(0) #=> 0.915824970865251
seeds << srand(num)
p rand(6) #=> 3
p rand(6) #=> 0
p rand(0) #=> 0.445804380918972
p rand(0) #=> 0.422248634121701
seeds << srand
p seeds #=> [455675, 2995620310703489221660585195204777696, 455675]
//}
@see Kernel.#rand, Random::DEFAULT... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (21027.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...umask
* 子プロセスでのリダイレクト
などを変更できます。環境変数のクリアなども指定できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも......s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(program , *args , options={}) -> bool | nil (21027.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...umask
* 子プロセスでのリダイレクト
などを変更できます。環境変数のクリアなども指定できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも......s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # `(command) -> String (21024.0) -
command を外部コマンドとして実行し、その標準出力を文字列として 返します。このメソッドは `command` の形式で呼ばれます。
...タスを得るには、$? を参照します。
コマンドの出力を得る必要がなく、単にコマンドを実行したいだけなら
Kernel.#system を使います。特に端末を制御するコマンドでは
`command` は失敗するかもしれません。
d:spec/literal#command......Errno::EXXX コマンドを実行できないときや失敗した場合に発生します。
//emlist[例][ruby]{
puts `ruby -v` #=> ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
puts $?.inspect #=> #<Process::Status: pid=3580,exited(0)>
//}
@see Kernel.#system,Kernel.#exec,Kernel.#spawn... -
Kernel
# message(format , *arg) -> nil (21022.0) -
Kernel.#printf と同じように標準出力にメッセージを出力します。 メッセージ出力後すぐに IO#flush します。
...
Kernel.#printf と同じように標準出力にメッセージを出力します。
メッセージ出力後すぐに IO#flush します。
$VERBOSE が真のときは何もしません。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。......@see Kernel.#printf... -
Kernel
# require(path) -> bool (21022.0) -
RubyGems を require すると、Kernel#require が Gem を 要求されたときにロードするように置き換えます。
...RubyGems を require すると、Kernel#require が Gem を
要求されたときにロードするように置き換えます。
再定義された Kernel#require を呼び出すと以下の事を行います。
Ruby のロードパスに存在するライブラリを指定した場合はその... -
Kernel
# xsystem(command , opts = nil) -> () (21022.0) -
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー 出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
...
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー
出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。......:werror というキーに真を指定すると
@see Kernel.#system...