るりまサーチ

最速Rubyリファレンスマニュアル検索!
690件ヒット [601-690件を表示] (0.027秒)
トップページ > クエリ:binding[x]

別のキーワード

  1. _builtin binding
  2. proc binding
  3. binding eval
  4. kernel binding
  5. tracepoint binding

検索結果

<< < ... 5 6 7 >>

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

===...
<< < ... 5 6 7 >>