>>877
>nilを代入するのではダメでシンボルテーブルから変数名自体を消したいってこと?

そうです。ERB用にこんなことをしたいんです。

# HashからBindingをつくる
def create_binding(_hash)
_defstr = _hash.inject('') { |_s, _e| _s << "#{_e[0]} = _hash[#{_e[0].inspect}];" }
eval _defstr
#undef _hash, _defstr # これができないものかと。
binding()
end

b = create_binding(:a=>10, :b=>'foo', :c=>%w[x y z])