るりまサーチ

最速Rubyリファレンスマニュアル検索!
417件ヒット [201-300件を表示] (0.169秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

クラス

モジュール

検索結果

<< < 1 2 3 4 5 > >>

Net::SMTP#tls? -> bool (6107.0)

その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。

...その Net::SMTP オブジェクトが SMTPS を利用するならば真を返します。

@see Net::SMTP#enable_tls, Net::SMTP#disable_tls, Net::SMTP#start...

TracePoint#eval_script -> String | nil (6107.0)

script_compiledイベント発生時にコンパイルされたソースコードを返します。 ファイルから読み込んだ場合は、nilを返します。

...script_compiledイベント発生時にコンパイルされたソースコードを返します。
ファイルから読み込んだ場合は、nilを返します。

//emlist[例][ruby]{
T
racePoint.new(:script_compiled) do |tp|
p tp.eval_script # => "puts 'hello'"
end.enable do
eval("puts 'he...
...llo'")
end
//}

@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。...

TracePoint#event -> Symbol (6107.0)

発生したイベントの種類を Symbol で返します。

...は、TracePoint.new を参照してくださ
い。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
t
race = TracePoint.new(:call, :return) do |tp|
p tp.event
end
t
race.enable
foo 1
# => :call
# :return
//}...

TracePoint#inspect -> String (6107.0)

self の状態を人間に読みやすい文字列にして返します。

...self の状態を人間に読みやすい文字列にして返します。

//emlist[例][ruby]{
def foo(ret)
ret
end
t
race = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
t
race.enable
foo 1
//}...

TracePoint#method_id -> Symbol | nil (6107.0)

イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。

...e RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end

t
race = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
end
t
race.enable do...
...C.new.alias_name
end
//}

@see TracePoint#callee_id...

絞り込み条件を変える

TracePoint#parameters -> [object] (6107.0)

現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。

...は Method#parameters と同じです。

@raise RuntimeError :call、:return、:b_call、:b_return、:c_call、:c_return
イベントのためのイベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(a, b = 2)
end
T
racePoint.new(:c...
...all) do |tp|
p tp.parameters # => a], [:opt, :b
end.enable do
foo(1)
end
//}

@see Method#parameters, UnboundMethod#parameters, Proc#parameters...

TracePoint#path -> String (6107.0)

イベントが発生したファイルのパスを返します。

...トが発生したファイルのパスを返します。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
t
race = TracePoint.new(:call) do |tp|
p tp.path # => "/path/to/test.rb"
end
t
race.enable
foo 1
//}...

TracePoint#return_value -> object (6107.0)

メソッドやブロックの戻り値を返します。

...se RuntimeError :return、:c_return、:b_return イベントのためのイベ
ントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
t
race = TracePoint.new(:return) do |tp|
p tp.return_value # => 1
end
t
race.enable
foo 1...

TracePoint#disable { ... } -> object (3113.0)

self のトレースを無効にします。

...行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)

//emlist[例][ruby]{
t
race.enabled? # => true
t
race.disable # => false (実行前の状態)
t
race.enabled? # => false
t
race.disable...
...ist[例][ruby]{
t
race.enabled? # => true

t
race.disable do
t
race.enabled? # => false
end

t
race.enabled? # => true
//}

[注意] イベントフックのためのメソッドに、ブロックの外側で参照した場合は
RuntimeError が発生する事に注意してください。

t
ra...
...ce.enable { p trace.lineno }
# => RuntimeError: access from outside

@see TracePoint#enable, TracePoint#enabled?...

TracePoint#lineno -> Integer (3107.0)

発生したイベントの行番号を返します。

...発生したイベントの行番号を返します。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[例][ruby]{
def foo(ret)
ret
end
t
race = TracePoint.new(:call, :return) do |tp|
t
p.lineno
end
t
race.enable
foo 1
# => 1
# 3
//}...

絞り込み条件を変える

<< < 1 2 3 4 5 > >>