method
instance_variable_hash
instance_variable_hash(# :nodoc:)
public
Hide source
# File lib/spec/example/example_methods.rb, line 89 def instance_variable_hash # :nodoc: instance_variables.inject({}) do |variable_hash, variable_name| variable_hash[variable_name] = instance_variable_get(variable_name) variable_hash end end