631件ヒット
[1-100件を表示]
(0.129秒)
ライブラリ
- ビルトイン (365)
- bigdecimal (11)
- fiddle (33)
- json (11)
- mkmf (22)
-
net
/ pop (44) -
net
/ smtp (11) -
rdoc
/ markdown (11) - socket (44)
クラス
- BigDecimal (11)
-
Fiddle
:: Handle (33) -
JSON
:: State (11) -
Net
:: POP3 (44) -
Net
:: SMTP (11) -
RDoc
:: Markdown (11) - Socket (22)
- TracePoint (194)
モジュール
- GC (22)
-
GC
:: Profiler (88) - Kernel (66)
-
RubyVM
:: MJIT (6) -
Socket
:: Constants (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
IP
_ RECVERR (22) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 3
. 0 . 0 (4) - OPTS (11)
- Rubyの起動 (11)
-
TCP
_ QUICKACK (22) - TracePoint (11)
- bigdecimal (11)
- binding (11)
-
callee
_ id (11) - clear (11)
-
close
_ enabled? (11) - coerce (11)
-
defined
_ class (11) - disable (44)
-
disable
_ close (11) -
disable
_ ssl (22) -
disable
_ starttls (11) -
enable
_ close (11) -
enable
_ config (22) -
enable
_ ssl (22) - enabled? (28)
-
eval
_ script (6) - event (11)
- extension (11)
- inspect (11)
-
instruction
_ sequence (6) - lineno (11)
-
method
_ id (11) -
net
/ pop (11) - new (11)
- parameters (6)
- path (11)
-
quirks
_ mode= (11) -
raised
_ exception (11) -
raw
_ data (11) -
rb
_ enable _ super (11) -
rb
_ gc _ enable (11) - report (11)
- result (11)
-
return
_ value (11) - spawn (44)
-
total
_ time (11)
検索結果
先頭5件
-
GC
:: Profiler . enable -> nil (21207.0) -
GC のプロファイラを起動します。
...GC のプロファイラを起動します。
このメソッドを呼び出してから GC が発生すると、
GC についてプロファイル情報を取得します。
例:
GC::Profiler.enable
GC::Profiler.enabled? #=> true
@see GC::Profiler.disable, GC::Profiler.enabled?... -
TracePoint
# enable -> bool (21126.0) -
self のトレースを有効にします。
...TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
//emlist[例][ruby]{
trace.enabled? # => false
trace.enable # => false (実行前の状態)
# トレースが有効
trace.enabled? # =......rue
trace.enable # => true (実行前の状態)
# 引き続きトレースが有効
//}
ブロックが与えられた場合、ブロック内でのみトレースが有効になります。
この場合はブロックの評価結果を返します。
//emlist[例][ruby]{
trace.enabled? # =>......trace.enable do
trace.enabled? # => true
end
trace.enabled? # => false
//}
[注意] イベントフックのためのメソッドにブロックの外側で参照した場合は
RuntimeError が発生する事に注意してください。
//emlist[例][ruby]{
trace.enable { p trace.lineno }... -
TracePoint
# enable { . . . } -> object (21126.0) -
self のトレースを有効にします。
...TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
//emlist[例][ruby]{
trace.enabled? # => false
trace.enable # => false (実行前の状態)
# トレースが有効
trace.enabled? # =......rue
trace.enable # => true (実行前の状態)
# 引き続きトレースが有効
//}
ブロックが与えられた場合、ブロック内でのみトレースが有効になります。
この場合はブロックの評価結果を返します。
//emlist[例][ruby]{
trace.enabled? # =>......trace.enable do
trace.enabled? # => true
end
trace.enabled? # => false
//}
[注意] イベントフックのためのメソッドにブロックの外側で参照した場合は
RuntimeError が発生する事に注意してください。
//emlist[例][ruby]{
trace.enable { p trace.lineno }... -
TracePoint
# binding -> Binding (15406.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
TracePoint
# binding -> Binding | nil (15406.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...れた Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:......call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String (12414.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバ......義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end... -
Kernel
# enable _ config(config , default) -> bool | String (12314.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバ......義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end... -
TracePoint
# inspect -> String (9206.0) -
self の状態を人間に読みやすい文字列にして返します。
...self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (9206.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...script_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval......("puts 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
TracePoint
# lineno -> Integer (9206.0) -
発生したイベントの行番号を返します。
...発生したイベントの行番号を返します。
@raise RuntimeError イベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call, :return) do |tp|
tp.lineno
end
trace.enable
foo 1
# => 1
# 3
//}... -
Fiddle
:: Handle # enable _ close -> nil (9201.0) -
GC によるオブジェクトの回収時に self をクローズする(Fiddle::Handle#close) ように設定します。
...GC によるオブジェクトの回収時に self をクローズする(Fiddle::Handle#close)
ように設定します。
デフォルトでは close しません。
@see Fiddle::Handle#disable_close, Fiddle::Handle#close_enabled?...