731件ヒット
[701-731件を表示]
(0.093秒)
ライブラリ
- English (12)
- ビルトイン (246)
- bigdecimal (72)
- csv (24)
- drb (12)
-
drb
/ timeridconv (12) - fiddle (144)
-
fiddle
/ import (24) - ipaddr (12)
-
irb
/ context (24) -
rubygems
/ dependency _ installer (12) - socket (36)
- zlib (12)
クラス
- Addrinfo (12)
- Array (69)
- BasicObject (12)
- BigDecimal (72)
- CSV (24)
-
DRb
:: DRbIdConv (12) -
DRb
:: TimerIdConv (12) -
Fiddle
:: CStruct (12) -
Fiddle
:: Closure (12) -
Fiddle
:: Function (24) -
Fiddle
:: Handle (12) -
Fiddle
:: Pointer (96) - Float (9)
-
Gem
:: DependencyInstaller (12) - Hash (48)
- IPAddr (12)
-
IRB
:: Context (24) - Object (12)
- Socket (12)
- String (24)
- Symbol (12)
-
Zlib
:: GzipFile (12)
モジュール
-
Fiddle
:: Importer (12) - Kernel (60)
-
Socket
:: Constants (12)
キーワード
-
$ CHILD _ STATUS (12) - % (12)
- +@ (12)
- -@ (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - DATA (12)
-
IPPROTO
_ IDP (24) - Integer (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - Numeric (12)
- [] (12)
- abs (12)
-
auto
_ indent _ mode (12) -
auto
_ indent _ mode= (12) - bigdecimal (12)
- call (12)
- caller (36)
-
delete
_ if (24) - fiddle (12)
-
fiddle
/ import (12) -
gems
_ to _ install (12) -
ipv6
_ to _ ipv4 (12) -
method
_ missing (12) - modulo (12)
- open (24)
- pack (21)
- pack テンプレート文字列 (12)
- ptr (12)
-
rb
_ to _ id (12) -
rb
_ to _ integer (12) - ref (12)
- reject! (24)
- remainder (12)
- sort (24)
- sort! (24)
- struct (12)
-
to
_ id (24) -
to
_ int (24) -
to
_ io (12) -
to
_ proc (12) -
to
_ ptr (12) - truncate (9)
- unpack (12)
検索結果
先頭3件
-
Kernel
. # caller(range) -> [String] | nil (12.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
end
bar
#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
# ["-:10:in `bar'", "-:13:in `<ma......す。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller.first)
end
def bar
foo
p parse_caller(caller.first)
end
bar
p parse_caller(caller.firs......=> ["-", 15, "bar"]
# ["-", 19, nil]
# nil
//}
以下は、$DEBUG が真の場合に役に立つ debug 関数
のサンプルです。
//emlist[例][ruby]{
$DEBUG = true
def debug(*args)
p [caller.first, *args] if $DEBUG
end
debug "debug information"
#=> ["-:7", "debug information"]
//}... -
Kernel
. # caller(start = 1) -> [String] | nil (12.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
end
bar
#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
# ["-:10:in `bar'", "-:13:in `<ma......す。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller.first)
end
def bar
foo
p parse_caller(caller.first)
end
bar
p parse_caller(caller.firs......=> ["-", 15, "bar"]
# ["-", 19, nil]
# nil
//}
以下は、$DEBUG が真の場合に役に立つ debug 関数
のサンプルです。
//emlist[例][ruby]{
$DEBUG = true
def debug(*args)
p [caller.first, *args] if $DEBUG
end
debug "debug information"
#=> ["-:7", "debug information"]
//}... -
Kernel
. # caller(start , length) -> [String] | nil (12.0) -
start 段上の呼び出し元の情報を $@ の形式のバックトレース(文字列の配列)として返します。
...。
@see Kernel.#set_trace_func,Kernel.#raise,
Kernel.#caller_locations
//emlist[例][ruby]{
def foo
p caller(0)
p caller(1)
p caller(2)
p caller(3)
p caller(4)
end
def bar
foo
end
bar
#=> ["-:2:in `foo'", "-:10:in `bar'", "-:13:in `<main>'"]
# ["-:10:in `bar'", "-:13:in `<ma......す。
//emlist[例][ruby]{
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = $1
line = $2.to_i
method = $3
[file, line, method]
end
end
def foo
p parse_caller(caller.first)
end
def bar
foo
p parse_caller(caller.first)
end
bar
p parse_caller(caller.firs......=> ["-", 15, "bar"]
# ["-", 19, nil]
# nil
//}
以下は、$DEBUG が真の場合に役に立つ debug 関数
のサンプルです。
//emlist[例][ruby]{
$DEBUG = true
def debug(*args)
p [caller.first, *args] if $DEBUG
end
debug "debug information"
#=> ["-:7", "debug information"]
//}...