lib/pry-state/hook_action.rb in pry-state-0.1.3 vs lib/pry-state/hook_action.rb in pry-state-0.1.4
- old
+ new
@@ -1,8 +1,8 @@
class HookAction
- IGNORABLE_LOCAL_VARS = [:__, :_, :_ex_, :_pry_, :_out_, :_in_, :_dir_, :_file_, :prev_binding]
- IGNORABLE_INSTANCE_VARS = [:@_request, :@_response, :@_routes, :@_prev_instance_state, :@_prev_local_state]
+ IGNORABLE_LOCAL_VARS = [:__, :_, :_ex_, :_pry_, :_out_, :_in_, :_dir_, :_file_]
+ IGNORABLE_INSTANCE_VARS = [:@_request, :@_response, :@_routes]
def initialize binding
@binding = binding
@instance_variables = @binding.eval('instance_variables')
@local_variables = @binding.eval('local_variables')
@@ -39,9 +39,11 @@
end
def stringify_value value
if value.class == String
"\"#{value}\""
+ elsif value.class == Array
+ "len:#{value.count} #{value}"
else
value.to_s
end
end