120件ヒット
[1-100件を表示]
(0.058秒)
種類
- 特異メソッド (54)
- モジュール関数 (48)
- インスタンスメソッド (18)
ライブラリ
- ビルトイン (48)
- forwardable (12)
-
net
/ imap (12) - openssl (12)
-
rdoc
/ markdown (12) - ripper (12)
- shell (12)
クラス
-
Net
:: IMAP (12) -
RDoc
:: Markdown (12) - Ripper (12)
- Shell (12)
- Thread (12)
モジュール
- Forwardable (12)
- Kernel (36)
- OpenSSL (12)
検索結果
先頭5件
-
Forwardable
. debug= -> bool (24201.0) -
委譲部分をバックトレースに含めるかどうかの状態を設定します。
委譲部分をバックトレースに含めるかどうかの状態を設定します。 -
Net
:: IMAP . debug=(val) (24200.0) -
デバッグモードの on/off をします。
...デバッグモードの on/off をします。
真を渡すと on になります。
@param val 設定するデバッグモードの on/off の真偽値
@see Net::IMAP#debug... -
OpenSSL
. # debug=(b) (24200.0) -
デバッグモードを on/off します。
...デバッグモードを on/off します。
@see OpenSSL.#debug... -
Shell
# debug=(flag) (24200.0) -
@todo
...@todo... -
Shell
. debug=(val) (24200.0) -
デバッグ用のフラグを設定します。
...デバッグ用のフラグを設定します。
@param val bool 値や整数値を指定します。詳細は下記を参照してください。
# debug: true -> normal debug
# debug: 1 -> eval definition debug
# debug: 2 -> detail inspect debug... -
Thread
. DEBUG=(val) (12206.0) -
スレッドのデバッグレベルを val に設定します。
...er に変換してから設定します。
偽 のときは 0 を設定します。
使用するためには、THREAD_DEBUG を -1 にして Ruby をコンパイルする必要が
あります。
//emlist[例][ruby]{
Thread.DEBUG # => 0
Thread.DEBUG = 1
Thread.DEBUG # => 1
//}
@see Thread.DEBUG... -
Ripper
# yydebug=(flag) (12200.0) -
yydebugの構文解析器の追跡機能が有効か無効かを指定します。
...yydebugの構文解析器の追跡機能が有効か無効かを指定します。
@param flag true か false を指定します。... -
RDoc
:: Markdown . new(extensions = DEFAULT _ EXTENSIONS , debug = false) (6201.0) -
引数 extensions で与えられた拡張を有効にした RDoc::Markdown オブ ジェクトを初期化します。
...引数 extensions で与えられた拡張を有効にした RDoc::Markdown オブ
ジェクトを初期化します。
@param extensions 有効にする拡張を Symbol の配列で指定します。
@param debug デバッグを有効にするかどうかを指定します。... -
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"]
//}...