From dcadb5e738774a133f980cd07ba2d617c6d6656d Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Fri, 25 Oct 2024 13:32:15 +1100 Subject: Handle singular form of SIBLINGS action. - Updated tests to handle `SIBLING` action - Added assumptions to README --- lib/family_tree.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/family_tree.rb') diff --git a/lib/family_tree.rb b/lib/family_tree.rb index 9850280..4fa5dca 100644 --- a/lib/family_tree.rb +++ b/lib/family_tree.rb @@ -67,7 +67,7 @@ class FamilyTree case relationship.downcase when 'mother', 'father' handle_parent_relationship(child_of_family, relationship) - when 'siblings' + when 'siblings', 'sibling' handle_siblings_relationship(child_of_family, name) when 'child', 'daughter', 'son' handle_children_relationship(parent_of_family, relationship) -- cgit v1.2.3