Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a .package method for convenience and abstraction
  • Loading branch information
lizmat committed Oct 6, 2013
1 parent d45e4da commit 9947610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Backtrace.pm
Expand Up @@ -13,6 +13,10 @@ my class Backtrace::Frame {
$s eq 'mu' ?? '' !! $s;
}

method package(Backtrace::Frame:D:) {
$.code.package;
}

multi method Str(Backtrace::Frame:D:) {
my $s = self.subtype;
$s ~= ' ' if $s.chars;
Expand Down

0 comments on commit 9947610

Please sign in to comment.