Extensions for Binding
Returns a hash of localvar/localvar-values from binding, useful for template engines that do not accept bindings and force passing locals via hash
@example
x = 42; p binding.locals #=> {'x'=> 42}
# File lib/ramaze/snippets/binding/locals.rb, line 11 11: def locals 12: ::Kernel::eval ' 13: local_variables.inject({}){|h,v| 14: k = v.to_s 15: h.merge!(k => eval(k)) 16: }', self 17: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.