From: rr.rosas@... Date: 2017-05-25T18:29:47+00:00 Subject: [ruby-core:81386] [Ruby trunk Feature#8631] Add a new method to ERB to allow assigning the local variables from a hash Issue #8631 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas). Awesome, thanks! ---------------------------------------- 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-65095 * Author: rosenfeld (Rodrigo Rosenfeld Rosas) * Status: Closed * Priority: Normal * Assignee: k0kubun (Takashi Kokubun) * Target version: 2.5 ---------------------------------------- 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 } ---Files-------------------------------- feature-8631.pdf (27.7 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: