mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add pending? method
This commit is contained in:
parent
20680f37cb
commit
2301e44bd1
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ module Spectator
|
|||
# Indicates whether the node has completed.
|
||||
abstract def finished? : Bool
|
||||
|
||||
# Checks if the node has been marked as pending.
|
||||
# Pending items should be skipped during execution.
|
||||
def pending?
|
||||
tags.includes?(:pending)
|
||||
end
|
||||
|
||||
# Constructs the full name or description of the node.
|
||||
# This prepends names of groups this node is part of.
|
||||
def to_s(io)
|
||||
|
|
Loading…
Reference in a new issue