ライブラリ
クラス
- Binding (86)
- ERB (36)
-
IRB
:: Frame (60) - Object (12)
- Proc (12)
-
RubyVM
:: InstructionSequence (12) - Socket (12)
- Thread (54)
- TracePoint (24)
- Tracer (36)
- XMP (12)
モジュール
- Kernel (60)
- ObjectSpace (36)
-
Socket
:: Constants (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Binding (12)
- Context (12)
-
IP
_ FREEBIND (24) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Ruby プログラムの実行 (12)
-
TOPLEVEL
_ BINDING (12) -
add
_ filter (24) -
add
_ trace _ func (12) - backtrace (12)
- bottom (24)
-
count
_ tdata _ objects (12) -
define
_ finalizer (24) - eval (36)
- irb (21)
-
irb
/ xmp (12) -
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) -
local
_ variables (11) - new (24)
- of (12)
-
proc
_ binding (12) -
rb
_ f _ binding (12) -
rb
_ obj _ is _ block (12) - receiver (11)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) - result (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - run (12)
- self (12)
-
set
_ trace _ func (24) -
source
_ location (7) - top (24)
-
trace
_ func (24) - tracer (12)
- xmp (12)
- パターンマッチ (12)
検索結果
先頭5件
-
Ruby プログラムの実行 (6.0)
-
Ruby プログラムの実行 === Ruby プログラム
...self がそのレシーバ、class がそのレシーバの特異クラス
==== eval
eval の第二引数に Proc オブジェクトまたは Binding オブ
ジェクトを与えたときは、その生成時のブロックのうえで文字列を評価します。
==== メソッドの実行... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (6.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(ir... -
Thread
# backtrace -> [String] | nil (6.0) -
スレッドの現在のバックトレースを返します。
...def m1
sleep 5
end
def m2
m1
end
end
th = Thread.new {C1.new.m2; Thread.stop}
th.backtrace
# => [
# [0] "(irb):3:in `sleep'",
# [1] "(irb):3:in `m1'",
# [2] "(irb):6:in `m2'",
# [3] "(irb):10:in `block in irb_binding'"
# ]
th.kill
th.backtrace # => nil
//}... -
Thread
# report _ on _ exception -> bool (6.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...8c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run #... -
Thread
# report _ on _ exception=(newstate) (6.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...8c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x00007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run #... -
ruby 1
. 6 feature (6.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...001-10-15) [i586-linux]
MatchData
NotImplementedError
FloatDomainError
LoadError
Float
Binding
SignalException
Module
-:6:in `method_missing': stack level too deep (SystemStackError)
: %q(...)
%... -
ruby 1
. 9 feature (6.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
...加 ((<ruby-dev:24255>))
=== 2004-08-27
: StringIO#readpartial(maxlen[, outbuf]) [lib][new]
追加。((<ruby-dev:24061>))
=== 2004-08-19
: Binding#eval(expr[, fname[, lineno=1]]) [new]
追加。((<RCR#251>))
: String#clear [new]
追加。((<ruby-dev:24104>))
=== 2004-08-17
:... -
tracer (6.0)
-
実行トレース出力をとる機能を提供します。
...します。
require 'tracer'
class Hoge
def Hoge.fuga(i)
"fuga #{i}"
end
end
Tracer.add_filter {|event, file, line, id, binding, klass|
event =~ /line/ and klass.to_s =~ /hoge/i
}
Tracer.on
for i in 0..3
puts Hoge.fuga(i) if i % 3 == 0
end
Tracer.off
===...