Taken from “puts global_variables.inspect”.
`$SAFE` and `$?` are thread-local, the exception stuff only works in a rescue clause, everything else is basically a local variable with a `$` in its name.
# File lib/pry/commands/ls/globals.rb, line 22 def initialize(opts, _pry_) super(_pry_) @default_switch = opts[:globals] end
# File lib/pry/commands/ls/globals.rb, line 27 def output_self variables = format(@target.eval('global_variables')) output_section('global variables', grep.regexp[variables]) end