132件ヒット
[101-132件を表示]
(0.085秒)
ライブラリ
- ビルトイン (132)
クラス
- Object (24)
- String (60)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - UnboundMethod (12)
キーワード
- % (12)
-
add
_ trace _ func (12) - hex (12)
- oct (12)
- owner (12)
-
set
_ trace _ func (12) -
to
_ f (12) -
to
_ i (12) -
to
_ str (12)
検索結果
先頭3件
-
String
# to _ i(base = 10) -> Integer (25.0) -
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
...する整数。0 か、2〜36 の整数。
@return 整数
このメソッドの逆に数値を文字列に変換するには、
Kernel.#sprintf, String#%, Integer#to_s
を使用します。
String#hex, String#oct, String#to_f,
Kernel.#Integer, Kernel.#Float
も参照してください。... -
Thread
# add _ trace _ func(pr) -> Proc (25.0) -
スレッドにトレース用ハンドラを追加します。
...を返します。
@param pr トレースハンドラ(Proc オブジェクト)
//emlist[例][ruby]{
th = Thread.new do
class Trace
end
43.to_s
end
th.add_trace_func lambda {|*arg| p arg }
th.join
# => ["line", "example.rb", 4, nil, #<Binding:0x00007f98e107d0d8>, nil]
# => ["c-call", "exampl......e0>, nil]
# => ["line", "example.rb", 6, nil, #<Binding:0x00007f98e108d4b0>, nil]
# => ["c-call", "example.rb", 6, :to_s, #<Binding:0x00007f98e1097aa0>, Integer]
# => ["c-return", "example.rb", 6, :to_s, #<Binding:0x00007f98e1095cc8>, Integer]
//}
@see Thread#set_trace_func Kernel.#set_trace_func... -
UnboundMethod
# owner -> Class | Module (13.0) -
このメソッドが定義されている class か module を返します。
...このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//}...