Sha256: 65206a51435b056f3d56ccf9c1beda415d90c7a60c089675cdab1f3e5543bc14

Contents?: true

Size: 226 Bytes

Versions: 8

Compression:

Stored size: 226 Bytes

Contents

require 'debugging'

module Debugging
  private

  def callstack
    caller.reverse.map{ |m|
      m.rindex( /:\d+(:in `(.*)')?$/ )
      $2
    }.compact.each.with_index{ |m, i|
      puts "  "*i + m
    }

    nil
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
debugging-2.1.0 lib/debugging/callstack.rb
debugging-2.0.0 lib/debugging/callstack.rb
debugging-1.1.2 lib/debugging/callstack.rb
debugging-1.1.1 lib/debugging/callstack.rb
debugging-1.1.0 lib/debugging/callstack.rb
debugging-1.0.2 lib/debugging/callstack.rb
debugging-1.0.1 lib/debugging/callstack.rb
debugging-1.0.0 lib/debugging/callstack.rb