758件ヒット
[701-758件を表示]
(0.192秒)
種類
- 特異メソッド (296)
- インスタンスメソッド (258)
- モジュール関数 (120)
- クラス (72)
- オブジェクト (12)
ライブラリ
- ビルトイン (758)
クラス
- Bignum (3)
- Data (6)
- Dir (24)
- Exception (32)
- Integer (12)
- Module (36)
- NameError (24)
- NoMethodError (12)
- Numeric (12)
- Object (12)
- Proc (14)
-
RubyVM
:: InstructionSequence (72) - Struct (48)
- Thread (78)
-
Thread
:: Backtrace :: Location (36) - TracePoint (7)
モジュール
- Kernel (120)
オブジェクト
- main (126)
キーワード
- DomainError (12)
- Enumerator (12)
- Fiber (12)
- FloatDomainError (12)
- Location (12)
- NameError (12)
- [] (20)
- abort (12)
- args (12)
-
at
_ exit (12) - autoload (12)
-
backtrace
_ locations (36) -
base
_ label (24) - caller (36)
-
caller
_ locations (24) -
compile
_ file (12) - define (6)
-
define
_ method (24) - disasm (12)
- disassemble (12)
- gets (12)
- glob (16)
- include (12)
- inspect (24)
-
instruction
_ sequence (7) - label (12)
- name (12)
- new (50)
- pass (12)
- private (27)
- public (27)
- raise (12)
- readline (12)
- readlines (12)
- refine (12)
- remainder (27)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
respond
_ to? (12) -
set
_ backtrace (12) -
to
_ a (12) -
to
_ s (36) - using (24)
検索結果
先頭5件
-
Thread
:: Backtrace :: Location # base _ label -> String (8006.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
...されます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.base_label
end
# => initialize
# new
# <main>
//}
@see Thread::Backtrace::Location#label... -
Thread
:: Backtrace :: Location # inspect -> String (8006.0) -
Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。
...][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.inspect
end
# => "path/to/foo.rb:5:in `initialize'"
# "path/to/foo.rb:9:in `new'"
# "path/to/foo.rb:9:in `<main>'"
//}... -
Thread
:: Backtrace :: Location # to _ s -> String (8006.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
...mlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo.rb:9:in `new'
# path/to/foo.rb:9:in `<main>'
//}... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (8006.0) -
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 イベントのための
イベ... -
Struct
. [](*args) -> Struct (8001.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。
@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//} -
Struct
. new(*args) -> Struct (8001.0) -
(このメソッドは Struct の下位クラスにのみ定義されています) 構造体オブジェクトを生成して返します。
(このメソッドは Struct の下位クラスにのみ定義されています)
構造体オブジェクトを生成して返します。
@param args 構造体の初期値を指定します。メンバの初期値は指定されなければ nil です。
@return 構造体クラスのインスタンス。
@raise ArgumentError 構造体のメンバの数よりも多くの引数を指定した場合に発生します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
foo = Foo.new(1)
p foo.values # => [1, nil]
//}