Sha256: d6fa21c08561fef28a72ac0677c9ba8cb9d392a32fa1826549ee850439cf2742
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
module Kernel def stack_tracy(arg = nil, options = {}) if arg.is_a?(Hash) options = arg arg = nil end StackTracy.start options yield StackTracy.stop if arg == :print StackTracy.print elsif arg == :dump StackTracy.dump elsif arg == :open StackTracy.dump do |file| StackTracy.open file, true, options end elsif arg.is_a? String StackTracy.dump arg end nil end end
Version data entries
5 entries across 5 versions & 1 rubygems