Add series links
This commit is contained in:
parent
d170a2fccf
commit
4793d660e2
6 changed files with 54 additions and 10 deletions
|
@ -13,3 +13,12 @@ has Str:D $.desc is required;
|
|||
|
||||
#| The ids of the posts in the series, in series order
|
||||
has Int:D @.post-ids is rw = [];
|
||||
|
||||
#| Returns true if this series contains the given post id
|
||||
method contains-post(Int:D $post-id --> Bool:D) {
|
||||
if $post-id ~~ any @!post-ids {
|
||||
True
|
||||
} else {
|
||||
False
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue