3818件ヒット
[201-300件を表示]
(0.051秒)
クラス
-
ARGF
. class (192) - Array (72)
- BasicObject (24)
- Binding (12)
- Complex (24)
- Enumerator (12)
- Exception (24)
- File (36)
- IO (468)
- LoadError (12)
- Method (12)
- Module (180)
- Object (192)
- Proc (19)
- Random (103)
- Rational (12)
- String (72)
- SystemExit (12)
- Thread (96)
-
Thread
:: Backtrace :: Location (12) - TracePoint (12)
- UnboundMethod (24)
- UncaughtThrowError (22)
キーワード
-
$ ! (12) -
$ " (12) -
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ + (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -K (12) -
$ -W (12) -
$ -a (12) -
$ -d (12) -
$ -i (12) -
$ -l (12) -
$ -p (12) -
$ -v (12) -
$ -w (12) -
$ . (12) -
$ / (12) -
$ 0 (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ : (12) -
$ ; (12) -
$ < (12) -
$ = (12) -
$ > (12) -
$ ? (12) -
$ @ (12) -
$ DEBUG (12) -
$ FILENAME (12) -
$ KCODE (12) -
$ LOADED _ FEATURES (12) -
$ LOAD _ PATH (12) -
$ PROGRAM _ NAME (12) -
$ SAFE (12) -
$ VERBOSE (12) -
$ \ (12) -
$ _ (12) -
$ ` (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ ~ (12) - % (12)
- ARGF (24)
- Array (12)
- BasicObject (12)
- Binding (12)
- Complex (36)
- DATA (12)
- DEFAULT (7)
- File (12)
- Float (12)
- Hash (12)
- Integer (12)
- Kernel (12)
- LoadError (12)
- Location (12)
- Proc (12)
- Rational (24)
- RuntimeError (12)
-
SCRIPT
_ LINES _ _ (12) - String (12)
- ThreadError (12)
- TracePoint (12)
- UncaughtThrowError (11)
-
_ _ callee _ _ (12) -
_ _ dir _ _ (12) -
_ _ method _ _ (12) - ` (12)
- abort (48)
-
add
_ trace _ func (12) -
alias
_ method (12) - ancestors (12)
-
at
_ exit (12) - autoload (24)
- autoload? (24)
-
backtrace
_ locations (24) -
bind
_ call (12) - binding (12)
- binread (12)
- binwrite (12)
-
block
_ given? (12) - caller (36)
-
caller
_ locations (24) - catch (24)
- chomp (12)
- chop (12)
- class (12)
-
class
_ eval (24) -
class
_ variables (12) -
const
_ defined? (12) - constants (24)
- convert (12)
-
defined
_ class (12) - eval (36)
- exception (24)
- exec (48)
- exit (36)
- exit! (24)
- fail (36)
-
for
_ fd (12) - foreach (24)
- fork (48)
- format (12)
- freeze (12)
- gets (48)
-
global
_ variables (12) - gsub (36)
- hex (12)
- identical? (12)
- include (12)
- inspect (12)
-
instance
_ eval (24) -
instance
_ variables (12) - iterator? (12)
- kill (24)
- lambda (18)
- load (12)
-
local
_ variables (12) - loop (24)
- method (12)
-
module
_ eval (24) - new (43)
- next (12)
- oct (12)
- open (72)
- owner (24)
- p (12)
- path (12)
- popen (168)
- pp (8)
- print (36)
- printf (48)
- proc (19)
-
public
_ instance _ method (12) - putc (36)
- puts (36)
- raise (48)
- rand (96)
- read (36)
- readline (48)
- readlines (84)
- rect (12)
- rectangular (12)
-
remove
_ const (12) - reopen (36)
- require (12)
-
require
_ relative (12) - sample (48)
- select (24)
- send (24)
-
set
_ trace _ func (24) - shuffle! (24)
-
singleton
_ method (12) - sleep (24)
- spawn (60)
- sprintf (12)
- srand (48)
- status (12)
- sub (24)
- syscall (12)
- sysopen (12)
- system (48)
- tag (11)
- terminate (12)
- test (24)
- throw (12)
-
to
_ a (48) -
to
_ ary (12) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ r (12) -
to
_ s (24) -
to
_ str (12) -
trace
_ var (36) - trap (24)
-
untrace
_ var (12) - value (11)
- warn (30)
- write (24)
検索結果
先頭5件
-
Kernel
. # autoload?(const _ name) -> String | nil (9024.0) -
const_name が Kernel.#autoload 設定されているか調べます。
...const_name が Kernel.#autoload 設定されているか調べます。
autoload 設定されていて、autoload 定数がまだ定義されてない(ロードされていない)
ときにそのパス名を返します。
autoload 設定されていないか、ロード済みなら nil を返し......lass Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----
class Foo
end
p Foo.autoload?(:Bar) #=> nil
Foo.autoload :Bar, '/tmp/foo'
p Foo.autoload?(:Bar) #=> "/tmp/foo"
p Foo::Bar #=> Foo::Bar
p Foo.autoload?(:Bar) #=> nil
//}
@see Kernel.#autoload... -
Kernel
. # binding -> Binding (9024.0) -
変数・メソッドなどの環境情報を含んだ Binding オブジェクトを 生成して返します。通常、Kernel.#eval の第二引数として使います。
...変数・メソッドなどの環境情報を含んだ Binding オブジェクトを
生成して返します。通常、Kernel.#eval の第二引数として使います。
//emlist[例][ruby]{
def foo
a = 1
binding
end
eval("p a", foo) #=> 1
//}
@see Kernel.#eval,Object::TOPLEVEL_BINDING... -
Kernel
. # system(command , options={}) -> bool | nil (9024.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......# => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true) # => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(env , command , options={}) -> bool | nil (9024.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...文字列で指定します。
@param env 更新する環境変数を表す Hash
@param options オプションパラメータ Hash
//emlist[シェル経由でコマンドを実行][ruby]{
system("echo *") # => true
# fileA fileB fileC ...
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......# => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true) # => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # throw(tag , value = nil) -> () (9024.0) -
Kernel.#catchとの組み合わせで大域脱出を行います。 throw は同じ tag を指定した catch のブロックの終わりまでジャンプします。
...
Kernel.#catchとの組み合わせで大域脱出を行います。 throw
は同じ tag を指定した catch のブロックの終わりまでジャンプします。
throw は探索時に呼び出しスタックをさかのぼるので、
ジャンプ先は同じメソッド内にあるとは限......いる catch が存在しない場合に発生します。
//emlist[例][ruby]{
def foo
throw :exit, 25
end
ret = catch(:exit) do
begin
foo
some_process() # 絶対に実行されない
10
ensure
puts "ensure"
end
end
puts ret
#=> ensure
# 25
//}
@see Kernel.#catch... -
Kernel
. # spawn(env , program , *args , options={}) -> Integer (9022.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...din), 1(stdout), 2(stderr) 以外の
ファイルデスクリプタをすべて閉じます。
false がデフォルトです。
: :exception
Kernel.#system のみで指定できます。
これを true に設定すると、nil や false を返す代わりに例外が発生します。
fa......列を指定します。
@param options オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
@raise Errno::EXXX コマンドが実行できなかった場合に発生します。
@see Kernel.#system,Kernel.#exec... -
Kernel
. # spawn(program , *args) -> Integer (9022.0) -
引数を外部コマンドとして実行しますが、生成した 子プロセスの終了を待ち合わせません。生成した子プロセスのプロセスIDを返します。
...din), 1(stdout), 2(stderr) 以外の
ファイルデスクリプタをすべて閉じます。
false がデフォルトです。
: :exception
Kernel.#system のみで指定できます。
これを true に設定すると、nil や false を返す代わりに例外が発生します。
fa......列を指定します。
@param options オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
@raise Errno::EXXX コマンドが実行できなかった場合に発生します。
@see Kernel.#system,Kernel.#exec... -
Kernel
$ $ > -> object (9020.0) -
標準出力です。
...標準出力です。
組み込み関数 Kernel.#print、Kernel.#puts や
Kernel.#p などのデフォルトの出力先となります。
初期値は Object::STDOUT です。
コマンドラインオプションオプション -i を指定した場合には
読み込み元と同じ名前のフ... -
Kernel
$ $ stdout -> object (9020.0) -
標準出力です。
...標準出力です。
組み込み関数 Kernel.#print、Kernel.#puts や
Kernel.#p などのデフォルトの出力先となります。
初期値は Object::STDOUT です。
コマンドラインオプションオプション -i を指定した場合には
読み込み元と同じ名前のフ... -
Kernel
. # abort -> () (9020.0) -
Ruby プログラムをエラーメッセージ付きで終了します。終了ステータスは 1 固定です。
...Ruby プログラムをエラーメッセージ付きで終了します。終了ステータスは 1 固定です。
このメソッドと Kernel.#exit との違いは、プログラムの終了ステー
タスが 1 (正確にはCレベルの定数 EXIT_FAILURE の値)固定であることと、......raise RuntimeError.new
rescue
abort
ensure
puts 'end2...'
end
puts 'end' #実行されない
#(標準出力)
#=> start
# start1...
# end1 with #<SystemExit: error1>
# start2...
# end2...
#終了ステータス:1
#(標準エラー出力)
#=> error1
//}
@see Kernel.#exit,Kernel.#exit!......#(標準出力)
#=> start
# start1...
# end1 with #<SystemExit: error1>
# start2...
# end2...
#終了ステータス:1
#(標準エラー出力)
#=> error1
# Traceback (most recent call last):
# sample.rb:11:in `<main>': RuntimeError (RuntimeError)
//}
@see Kernel.#exit,Kernel.#exit!...
