Add pending? method

This commit is contained in:
Michael Miller 2021-01-30 16:05:32 -07:00
parent 20680f37cb
commit 2301e44bd1
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436

View file

@ -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)