From: "sorah (Shota Fukumori)" Date: 2013-07-14T17:28:36+09:00 Subject: [ruby-core:56000] [ruby-trunk - Feature #8631][Assigned] Add a new method to ERB to allow assigning the local variables from a hash Issue #8631 has been updated by sorah (Shota Fukumori). Status changed from Open to Assigned Assignee set to seki (Masatoshi Seki) Assigning to erb maintainer; IMO, I recommend you to show example mock-code that uses your proposal, to show what interface (API) do you want :) ---------------------------------------- Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash https://bugs.ruby-lang.org/issues/8631#change-40495 Author: rosenfeld (Rodrigo Rosenfeld Rosas) Status: Assigned Priority: Low Assignee: seki (Masatoshi Seki) Category: Target version: It would be interesting if ERB could allow a hash instead of a binding for processing the template. We wouldn't have to do hacks like: b = OpenStruct.new(hash).instance_eval{ binding } -- http://bugs.ruby-lang.org/