24件ヒット
[1-24件を表示]
(0.242秒)
トップページ >
:result_with_hash

![条件を削除 [x]](/images/drop-condition-icon.png)
検索結果
先頭3件
-
ERB
# result _ with _ hash(hash) -> String (18101.0) -
ERB をハッシュオブジェクトで指定されたローカル変数を持つ 新しいトップレベルバインディングで実行し、結果の文字列を返します。
ERB をハッシュオブジェクトで指定されたローカル変数を持つ
新しいトップレベルバインディングで実行し、結果の文字列を返します。
@param hash ローカル変数名をキーにしたハッシュ
@see ERB#result -
ERB
# result(b=TOPLEVEL _ BINDING) -> String (6.0) -
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
//}
@see ERB#result_with_hash... -
NEWS for Ruby 2
. 5 . 0 (6.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...1, 2, 0, nil, ...] }
//}
* drb
* ACL::ACLEntry.new は IPAddr::InvalidPrefixError を抑制しなくなりました
* erb
* ERB#result_with_hash を追加。
ハッシュで与えられたローカル変数とともにテンプレートを描画します。8631
* erbコマン...