class Binding
Public Instance Methods
local_values()
click to toggle source
Returns a hash with symbol keys that maps local variable names to their corresponding values.
# File lib/console_utils/core_ext/local_values.rb, line 4 def local_values Hash[local_variables.map { |name| [name.to_s, local_variable_get(name)] }] end