Implement finished? method

This commit is contained in:
Michael Miller 2020-09-12 16:02:11 -06:00
parent 3133717323
commit 98f886d9d4
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -22,6 +22,11 @@ module Spectator
@nodes.each { |node| yield node }
end
# Checks if all examples and sub-groups have finished.
def finished? : Bool
@nodes.all?(&.finished?)
end
# Adds the specified *node* to the group.
# Assigns the node to this group.
# If the node already belongs to a group,