
![条件を削除 [x]](/images/drop-condition-icon.png)
種類
ライブラリ
- English (200)
- ビルトイン (2519)
- benchmark (8)
- bigdecimal (28)
-
bigdecimal
/ util (16) - continuation (32)
- csv (8)
- delegate (8)
- digest (8)
-
drb
/ extservm (8) - e2mmap (18)
-
irb
/ cmd / load (16) -
irb
/ xmp (16) - json (24)
-
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (728)
- open-uri (56)
- open3 (16)
- openssl (8)
- pathname (16)
- pp (12)
- profiler (8)
- psych (16)
- pty (32)
- rake (104)
- rubygems (8)
-
rubygems
/ commands / lock _ command (8) -
rubygems
/ custom _ require (8) -
rubygems
/ timer (8) - scanf (30)
- shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (64)
- stringio (72)
- syslog (72)
- tempfile (35)
-
test
/ unit (1) - timeout (29)
- tracer (24)
- un (104)
- uri (8)
-
webrick
/ utils (8) - win32ole (8)
- zlib (32)
クラス
-
ARGF
. class (128) - Array (48)
- BasicObject (16)
-
Benchmark
:: Tms (8) - BigDecimal (12)
- Binding (8)
- CSV (8)
- Complex (16)
- Continuation (16)
-
DRb
:: ExtServManager (8) - Enumerator (8)
- Exception (16)
- File (24)
- Float (16)
- IO (280)
-
IRB
:: ExtendCommand :: Load (8) -
IRB
:: ExtendCommand :: Require (8) - LoadError (8)
- Method (8)
- Module (120)
- Object (137)
- Proc (16)
- Random (72)
- Rational (8)
- Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (32)
- String (60)
- StringIO (72)
- SystemExit (8)
- Tempfile (35)
- Thread (64)
-
Thread
:: Backtrace :: Location (8) - TracePoint (8)
- Tracer (24)
- UnboundMethod (12)
- UncaughtThrowError (14)
-
WIN32OLE
_ EVENT (8) - XMP (8)
-
Zlib
:: GzipWriter (32)
モジュール
- Exception2MessageMapper (18)
- FileTest (8)
- FileUtils (16)
- Kernel (2541)
-
MiniTest
:: Assertions (2) - Open3 (16)
-
OpenSSL
:: Buffering (8) - OpenURI (16)
-
OpenURI
:: OpenRead (16) - PTY (32)
- Process (64)
-
Socket
:: Constants (32) - Syslog (72)
-
Test
:: Unit (1) - Timeout (13)
- URI (8)
-
WEBrick
:: Utils (8) - Warning (10)
キーワード
-
$ ! (8) -
$ " (8) -
$ $ (8) -
$ & (8) -
$ & # 39; (8) -
$ * (8) -
$ + (8) -
$ , (8) -
$ -0 (8) -
$ -F (8) -
$ -I (8) -
$ -K (8) -
$ -W (8) -
$ -a (8) -
$ -d (8) -
$ -i (8) -
$ -l (8) -
$ -p (8) -
$ -v (8) -
$ -w (8) -
$ . (8) -
$ / (8) -
$ 0 (8) -
$ 1 (8) -
$ 10 (8) -
$ 11 (8) -
$ 2 (8) -
$ 3 (8) -
$ 4 (8) -
$ 5 (8) -
$ 6 (8) -
$ 7 (8) -
$ 8 (8) -
$ 9 (8) -
$ : (8) -
$ ; (8) -
$ < (8) -
$ = (8) -
$ > (8) -
$ ? (8) -
$ @ (8) -
$ ARGV (8) -
$ CFLAGS (8) -
$ CHILD _ STATUS (8) -
$ DEBUG (8) -
$ DEFAULT _ INPUT (8) -
$ DEFAULT _ OUTPUT (8) -
$ ERROR _ INFO (8) -
$ ERROR _ POSITION (8) -
$ FIELD _ SEPARATOR (8) -
$ FILENAME (8) -
$ FS (8) -
$ IGNORECASE (8) -
$ INPUT _ LINE _ NUMBER (8) -
$ INPUT _ RECORD _ SEPARATOR (8) -
$ KCODE (8) -
$ LAST _ MATCH _ INFO (8) -
$ LAST _ PAREN _ MATCH (8) -
$ LAST _ READ _ LINE (8) -
$ LDFLAGS (8) -
$ LOADED _ FEATURES (8) -
$ LOAD _ PATH (8) -
$ MATCH (8) -
$ NR (8) -
$ OFS (8) -
$ ORS (8) -
$ OUTPUT _ FIELD _ SEPARATOR (8) -
$ OUTPUT _ RECORD _ SEPARATOR (8) -
$ PID (8) -
$ POSTMATCH (8) -
$ PREMATCH (8) -
$ PROCESS _ ID (8) -
$ PROGRAM _ NAME (8) -
$ RS (8) -
$ SAFE (8) -
$ VERBOSE (8) -
$ \ (8) -
$ _ (8) -
$ ` (8) -
$ archdir (8) -
$ defs (8) -
$ hdrdir (8) -
$ libdir (8) -
$ libs (8) -
$ sitearchdir (8) -
$ sitelibdir (8) -
$ srcdir (8) -
$ stderr (8) -
$ stdin (8) -
$ stdout (8) -
$ topdir (8) -
$ ~ (8) - % (8)
-
AI
_ V4MAPPED _ CFG (16) - ARGF (16)
- Array (8)
- BasicObject (8)
- BigDecimal (16)
- Binding (8)
- CONFIG (8)
- Complex (24)
- Continuation (8)
- Converters (8)
- DATA (8)
- DEFAULT (8)
- DefaultLoader (8)
- DelegateClass (8)
- Digest (8)
- File (8)
- Float (8)
- Hash (8)
- Integer (8)
- JSON (8)
- Kernel (8)
- LoadError (8)
- Location (8)
- LockCommand (8)
-
NEWS for Ruby 2
. 0 . 0 (8) -
NEWS for Ruby 2
. 1 . 0 (8) -
NEWS for Ruby 2
. 2 . 0 (7) -
NEWS for Ruby 2
. 3 . 0 (6) -
NEWS for Ruby 2
. 4 . 0 (5) -
NEWS for Ruby 2
. 5 . 0 (4) -
NEWS for Ruby 2
. 6 . 0 (3) -
NEWS for Ruby 2
. 7 . 0 (2) - Pathname (16)
- Proc (8)
-
Profiler
_ _ (8) - Rational (16)
- Rubyの起動 (8)
- Ruby用語集 (8)
- RuntimeError (8)
-
SCRIPT
_ LINES _ _ (8) -
SO
_ ATTACH _ FILTER (16) -
SO
_ DETACH _ FILTER (16) -
SO
_ NKE (16) - Scanf (6)
- String (8)
- Task (8)
- ThreadError (8)
- TracePoint (8)
- URI (8)
- UncaughtThrowError (7)
- Win32ネイティブ版Rubyの互換性問題 (8)
- [] (26)
-
_ _ callee _ _ (8) -
_ _ dir _ _ (8) -
_ _ method _ _ (8) - ` (8)
- abort (32)
-
add
_ filter (16) -
add
_ trace _ func (8) - alert (8)
-
alias
_ method (8) - ancestors (8)
-
arg
_ config (8) -
assert
_ throws (1) -
at
_ exit (8) - autoload (16)
- autoload? (16)
-
backtrace
_ locations (16) - bigdecimal (8)
-
bind
_ call (4) - binding (8)
-
block
_ given? (8) - call (8)
- callcc (8)
- caller (24)
-
caller
_ locations (16) - catch (16)
-
cc
_ command (8) -
check
_ signedness (16) -
check
_ sizeof (16) - chmod (8)
- chomp (8)
- chop (8)
- class (8)
-
class
_ eval (16) -
class
_ variables (8) - command (8)
-
const
_ defined? (8) - constants (16)
- convert (8)
-
convertible
_ int (16) - cp (8)
-
cpp
_ command (8) - create (14)
-
create
_ header (8) -
create
_ makefile (8) -
create
_ tmpsrc (8) - crit (8)
- debug (8)
-
def
_ exception (6) -
defined
_ class (8) - delegate (8)
-
depend
_ rules (8) - desc (8)
- describe (1)
-
dir
_ config (8) - directory (8)
-
drb
/ extservm (8) -
dummy
_ makefile (8) -
egrep
_ cpp (16) - emerg (8)
-
enable
_ config (16) - err (8)
- eval (24)
- exception (16)
- exec (32)
- execute (16)
- exit (24)
- exit! (16)
- fail (24)
- file (8)
-
file
_ create (8) -
find
_ executable (8) -
find
_ header (8) -
find
_ library (16) -
find
_ type (16) -
for
_ fd (8) - foreach (16)
- fork (32)
- format (16)
- freeze (8)
- gem (8)
- getpty (16)
- gets (32)
-
global
_ variables (8) - gsub (24)
-
have
_ devel? (8) -
have
_ framework (16) -
have
_ func (16) -
have
_ header (16) -
have
_ library (16) -
have
_ macro (16) -
have
_ struct _ member (16) -
have
_ type (16) -
have
_ var (16) - help (8)
- hex (8)
- httpd (8)
- identical? (8)
- import (8)
- include (8)
- info (8)
- inspect (8)
- install (8)
-
install
_ files (8) -
install
_ rb (8) -
instance
_ eval (16) -
instance
_ variables (8) - irb (8)
-
irb
/ xmp (8) - iterator? (8)
- j (8)
- jj (8)
- kill (16)
- lambda (16)
- libpathflag (8)
-
link
_ command (8) - ln (8)
- load (8)
-
local
_ variables (8) - log (8)
-
log
_ src (8) - loop (16)
- mathn (4)
-
merge
_ libs (8) - method (8)
-
minitest
/ autorun (8) -
minitest
/ unit (1) - mkdir (8)
- mkmf (16)
- modified? (8)
-
module
_ eval (16) - multitask (8)
-
must
_ throw (1) - mv (8)
- namespace (8)
- new (67)
- next (8)
- notice (8)
- oct (8)
- open (118)
- open-uri (6)
-
open
_ uri (16) - owner (16)
- p (8)
- path (8)
- popen (112)
- popen3 (16)
- pp (16)
-
pretty
_ print (8) - print (48)
- printf (56)
- proc (16)
-
psych
_ y (8) -
public
_ instance _ method (8) - putc (32)
- puts (40)
- raise (32)
- rand (64)
-
rb
_ String (8) -
rb
_ exec _ end _ proc (8) -
rb
_ f _ array (8) -
rb
_ f _ float (8) -
rb
_ f _ hash (8) -
rb
_ f _ integer (8) -
rb
_ f _ string (8) -
rb
_ load (8) - read (24)
- readline (32)
- readlines (56)
- rect (8)
- rectangular (8)
-
remove
_ const (8) - reopen (40)
- require (16)
-
require
_ relative (8) - rm (8)
-
rm
_ f (8) -
rm
_ rf (8) - rmdir (8)
- ruby (8)
-
ruby 1
. 6 feature (8) -
ruby 1
. 8 . 2 feature (8) -
ruby 1
. 8 . 4 feature (8) -
ruby 1
. 8 . 5 feature (8) -
ruby 1
. 9 feature (8) -
rubygems
/ commands / lock _ command (8) -
rubygems
/ custom _ require (8) - rule (8)
-
run
_ config (6) - sample (32)
- scanf (24)
- select (16)
- send (16)
-
set
_ close _ on _ exec (8) -
set
_ trace _ func (24) -
setup
_ argv (1) - sh (8)
- shuffle! (16)
-
singleton
_ method (8) - skip (1)
- sleep (16)
- spawn (56)
- sprintf (8)
- sprintf フォーマット (8)
- srand (32)
- status (8)
- sub (16)
- syscall (8)
- sysopen (8)
- system (32)
- tag (7)
- task (8)
- terminate (8)
- test (34)
- throw (8)
- time (8)
- timeout (29)
-
to
_ a (32) -
to
_ ary (8) -
to
_ d (16) -
to
_ f (8) -
to
_ i (8) -
to
_ int (8) -
to
_ r (8) -
to
_ s (16) -
to
_ str (8) - touch (8)
-
trace
_ var (24) - tracer (8)
- trap (16)
-
try
_ compile (16) -
try
_ constant (16) -
try
_ cpp (16) -
try
_ do (16) -
try
_ func (16) -
try
_ link (16) -
try
_ run (16) -
try
_ static _ assert (16) -
try
_ type (16) -
try
_ var (16) - ubygems (4)
-
untrace
_ var (8) - value (7)
- verbose= (8)
-
wait
_ writable (8) - warn (18)
- warning (8)
-
webrick
/ https (8) -
webrick
/ httpservlet (8) -
with
_ config (16) -
with
_ werror (16) - xmp (8)
- xpopen (16)
- xsystem (8)
- y (8)
- このマニュアルのヘルプ (8)
- クラス/メソッドの定義 (8)
- セキュリティモデル (8)
- 制御構造 (8)
- 変数と定数 (8)
- 手続きオブジェクトの挙動の詳細 (8)
- 環境変数 (8)
- 終了処理 (8)
検索結果
先頭5件
-
Kernel
$ $ _ -> String | nil (9056.0) -
最後に Kernel.#gets または Kernel.#readline で読み込んだ文字列です。 EOF に達した場合には、 nil になります。 (覚え方: Perlと同じ)
...最後に Kernel.#gets または Kernel.#readline で読み込んだ文字列です。
EOF に達した場合には、 nil になります。
(覚え方: Perlと同じ)
Kernel.#print のような Perl 由来の幾つかのメソッドは、引数を省略すると代わりに $_ を利用します......。
この変数はローカルスコープかつスレッドローカルです。
Ruby起動時の初期値は nil です。
@see Kernel.#print, Kernel.#gets, Kernel.#readline, Object::ARGF
=== 例
example.txt:
foo
bar
baz
このとき、コマンド ruby -e 'print while gets' example.txt... -
Kernel
. # exec(env , program , *args , options={}) -> () (9036.0) -
引数で指定されたコマンドを実行します。
...イルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも
そ......替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep
@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)... -
Kernel
. # exec(program , *args , options={}) -> () (9036.0) -
引数で指定されたコマンドを実行します。
...イルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも
そ......替えて以下を実行
$ ps aux|grep sleep
xxxx 32754 0.0 0.0 2580 468 pts/3 S+ 22:01 0:00 mysleep 600
xxxx 32761 0.0 0.0 2824 792 pts/6 S+ 22:01 0:00 grep sleep
@see Kernel.#system,Kernel.#`,Kernel.#spawn,Kernel.#fork,IO.popen,IO.pipe,Kernel.#open,exec(3)... -
Kernel
# create _ header(header = "extconf . h") -> String (9032.0) -
Kernel#have_func, Kernel#have_header などの検査結果を元に、 ヘッダファイルを生成します。
...
Kernel#have_func, Kernel#have_header などの検査結果を元に、
ヘッダファイルを生成します。
このメソッドは extconf.rb の最後で呼び出すようにしてください。
@param header ヘッダファイルの名前を指定します。
@return ヘッダファイ... -
Kernel
. # exit!(status = false) -> () (9030.0) -
Rubyプログラムの実行を即座に終了します。 status として整数が与えられた場合、その値を Ruby コマンドの終了ステータスとします。 デフォルトの終了ステータスは 1 です。
...XIT_FAILURE の値なので、正確には環境依存です。
exit! は exit とは違って、例外処理などは一切行ないませ
ん。 Kernel.#fork の後、子プロセスを終了させる時などに用
いられます。
@param status 終了ステータスを整数か true また......前に終了しないようにする
puts 'start'
begin
puts 'start1...'
exit!
ensure
puts 'end1...' #実行されない
end
puts 'end' #実行されない
#=> start
# start1...
#終了ステータス:1
@see Kernel.#exit,Kernel.#abort,Kernel.#at_exit,Kernel.#fork... -
Kernel
. # open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO | Tempfile | IO (9030.0) -
name が http:// や ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...ock) のように name の open メソッドが呼ばれます。
これ以外の場合は、name はファイル名として扱われ、従来の
Kernel.#open(name, *rest) が呼ばれます。
ブロックを与えた場合は上の場合と同様、name が http:// や ftp:// で
始まって......す。
Ruby2.7以降、open-uriにより拡張されたKernel.openでURLを開くときにwarningが表示されるようになりました。
require 'open-uri'
open("http://www.ruby-lang.org/")
#=> warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#o......ram mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm open(2) の第 3 引数のように、ファイルを生成する場合のファイルのパーミッションを
整数で指定します。Kernel.#open と同じです
@param options ハッシ... -
Kernel
. # open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|ouri| . . . } -> object (9030.0) -
name が http:// や ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...ock) のように name の open メソッドが呼ばれます。
これ以外の場合は、name はファイル名として扱われ、従来の
Kernel.#open(name, *rest) が呼ばれます。
ブロックを与えた場合は上の場合と同様、name が http:// や ftp:// で
始まって......す。
Ruby2.7以降、open-uriにより拡張されたKernel.openでURLを開くときにwarningが表示されるようになりました。
require 'open-uri'
open("http://www.ruby-lang.org/")
#=> warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#o......ram mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm open(2) の第 3 引数のように、ファイルを生成する場合のファイルのパーミッションを
整数で指定します。Kernel.#open と同じです
@param options ハッシ... -
Kernel
. # autoload(const _ name , feature) -> nil (9028.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...定数 const_name を最初に参照した時に feature を
Kernel.#require するように設定します。
const_name には、 "::" 演算子を含めることはできません。
ネストした定数を指定する方法は Module#autoload を参照してください。
@param const_name......対象を指定します。
@raise LoadError featureのロードに失敗すると発生します。
//emlist[][ruby]{
# ------- /tmp/foo.rb ---------
class Bar
end
# ----- end of /tmp/foo.rb ----
autoload :Bar, '/tmp/foo'
p Bar #=> Bar
//}
@see Kernel.#autoload?,Module#autoload,Kernel.#require... -
Kernel
. # catch {|tag| . . . . } -> object (9028.0) -
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
...
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
ブロックの実行中に tag と同一のオブジェクトを引数とする Kernel.#throw が行われた
場合は、その throw の第二引数を戻り値として、ブロック......。
@return ブロックの返り値か、対応するthrowの第二引数を返り値として返します。
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
. # catch(tag) {|tag| . . . . } -> object (9028.0) -
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
...
Kernel.#throwとの組み合わせで大域脱出を行います。 catch はブロックを実行します。
ブロックの実行中に tag と同一のオブジェクトを引数とする Kernel.#throw が行われた
場合は、その throw の第二引数を戻り値として、ブロック......。
@return ブロックの返り値か、対応するthrowの第二引数を返り値として返します。
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
. # srand -> Integer (9028.0) -
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
...
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
seed に整数を指定するとその絶対値を乱数の種に設定します。
それ以外の値を指定した場合は seed.to_int が指定されたものとして扱いま......す。
seed に既知の値を与えると、以前の Kernel.#rand の値を再現できます。
seed が省略された時には
現在の時刻やプロセス ID、srand を呼び出した回数、
また可能なら /dev/urandom から読み出したデータなどを元に種を作ります......347
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 (9028.0) -
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
...
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
seed に整数を指定するとその絶対値を乱数の種に設定します。
それ以外の値を指定した場合は seed.to_int が指定されたものとして扱いま......す。
seed に既知の値を与えると、以前の Kernel.#rand の値を再現できます。
seed が省略された時には
現在の時刻やプロセス ID、srand を呼び出した回数、
また可能なら /dev/urandom から読み出したデータなどを元に種を作ります......347
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 (9027.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 (9027.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)...