Sha256: 4ff2141d6ecd488ddd8a59bd4d6ee08efb00534fe5a453af6c6aa34d8ac4fa47
Contents?: true
Size: 546 Bytes
Versions: 20
Compression:
Stored size: 546 Bytes
Contents
class Pry # The default hooks - display messages when beginning and ending Pry sessions. DEFAULT_HOOKS = { :before_session => proc do |out, target| # ensure we're actually in a method meth_name = target.eval('__method__') file = target.eval('__FILE__') # /unknown/ for rbx if file !~ /(\(.*\))|<.*>/ && file !~ /__unknown__/ && file != "" && file != "-e" Pry.run_command "whereami 5", :output => out, :show_output => true, :context => target, :commands => Pry::Commands end end, } end
Version data entries
20 entries across 20 versions & 1 rubygems