るりまサーチ

最速Rubyリファレンスマニュアル検索!
194件ヒット [101-194件を表示] (0.078秒)

別のキーワード

  1. openssl g
  2. openssl g=
  3. dh g
  4. dsa g
  5. dh g=

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

Binding#receiver -> object (12007.0)

保持するコンテキスト内での self を返します。

...保持するコンテキスト内での self を返します。

このメソッドは以下のコードと同様の動作をします。

//emlist[][ruby]{
binding
.eval("self")
//}...

IRB::Frame#trace_func(event, file, line, id, binding) -> Binding (303.0)

ライブラリ内部で使用します。

ライブラリ内部で使用します。

ERB#result(b=TOPLEVEL_BINDING) -> String (224.0)

ERB を b の binding で実行し、結果の文字列を返します。

...ERB を b の binding で実行し、結果の文字列を返します。

@param b eRubyスクリプトが実行されるときのbinding

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
puts erb.result
# test foo
# test bar
//...

ERB#run(b=TOPLEVEL_BINDING) -> nil (224.0)

ERB を b の binding で実行し、結果を標準出力へ印字します。

...ERB を b の binding で実行し、結果を標準出力へ印字します。

@param b eRubyスクリプトが実行されるときのbinding

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
erb.run
# test foo
# test bar
//}...

IRB::Frame#bottom(n = 0) -> Binding (202.0)

下から n 番目のコンテキストを取り出します。

...下から n 番目のコンテキストを取り出します。

@param n 取り出すコンテキストを Integer で指定します。n は 0 が最
下位になります。...

絞り込み条件を変える

IRB::Frame#top(n = 0) -> Binding (202.0)

上から n 番目のコンテキストを取り出します。

...上から n 番目のコンテキストを取り出します。

@param n 取り出すコンテキストを Integer で指定します。n は 0 が最
上位になります。...

Tracer#trace_func(event, file, line, id, binding, klass, *) -> object | nil (202.0)

@todo

@todo

Thread#backtrace -> [String] | nil (107.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
//}...
<< < 1 2 >>