From: "rosenfeld (Rodrigo Rosenfeld Rosas)" Date: 2013-07-13T04:42:02+09:00 Subject: [ruby-core:55985] [ruby-trunk - Feature #8631][Open] Add a new method to ERB to allow assigning the local variables from a hash Issue #8631 has been reported by rosenfeld (Rodrigo Rosenfeld Rosas). ---------------------------------------- Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash https://bugs.ruby-lang.org/issues/8631 Author: rosenfeld (Rodrigo Rosenfeld Rosas) Status: Open Priority: Low Assignee: 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/