class ERBWithHash::HashAsBinding
Public Class Methods
new(hash)
click to toggle source
# File lib/erb_with_hash.rb, line 5 def initialize(hash) @_env = hash end
Public Instance Methods
method_missing(msg, *args, &block)
click to toggle source
Calls superclass method
# File lib/erb_with_hash.rb, line 9 def method_missing(msg, *args, &block) super if block super unless args.empty? @_env.fetch(msg) { @_env.fetch(msg.to_s) { super }} end