33件ヒット
[1-33件を表示]
(0.016秒)
種類
- インスタンスメソッド (24)
- 文書 (9)
ライブラリ
- ビルトイン (24)
クラス
- TracePoint (24)
キーワード
-
NEWS for Ruby 2
. 4 . 0 (9) -
method
_ id (12)
検索結果
-
TracePoint
# callee _ id -> Symbol | nil (24226.0) -
イベントが発生したメソッドの呼ばれた名前を Symbol で返します。 トップレベルであった場合は nil を返します。
...した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
end
trace.enable do
C.new.alias_name
end
//}
@see TracePoint#method_id... -
TracePoint
# method _ id -> Symbol | nil (6131.0) -
イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。
...した場合に発生します。
//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end
trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
end
trace.enable do
C.new.alias_name
end
//}
@see TracePoint#callee_id... -
NEWS for Ruby 2
. 4 . 0 (12.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...なりました。10085
* Thread
* Thread#report_on_exception, Thread.report_on_exception を追加 6647
* TracePoint
* TracePoint#callee_id を追加 12747
* Warning
* Warningという名前のモジュールを導入しました。
デフォルトでは Warning.#warn と......ibute
value is returned. Otherwise, Nth child is returned. This is
backward compatible change.
* set
* Set#compare_by_identity, Set#compare_by_identity? を追加
12210
* webrick
* "," をクッキーの区切り文字として許可しなくなりました 12791
===......* the extension library is removed. Till 2.0 it was a pure ruby script
"thread.rb", which has precedence over "thread.so", and has been provided
in $LOADED_FEATURES since 2.1.
* Tk
* 標準添付ライブラリから削除されました 8539
https://github.com/ruby/tk...