Skip to content

Commit

Permalink
[List.pm] Add spacing between methods
Browse files Browse the repository at this point in the history
modified:   src/core/List.pm
  • Loading branch information
unobe committed Dec 29, 2009
1 parent ffcdd77 commit 4ccc5a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/List.pm
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
augment class List {
method elems() { +self!generate; }

method list() { self; }

method Num() { self.elems; }

method Int() { self.elems.Int; }

method Str() {
pir::join(' ', self!generate);
}

method perl() {
if self.elems() == 0 { return Nil.WHAT };
# XXX: $_.perl and .perl don't work, but this does...
Expand Down

0 comments on commit 4ccc5a7

Please sign in to comment.