diff --git a/lib/resume/cli/resume_node_types.rb b/lib/resume/cli/resume_node_types.rb index 9043174b..fde0bde5 100644 --- a/lib/resume/cli/resume_node_types.rb +++ b/lib/resume/cli/resume_node_types.rb @@ -3,9 +3,9 @@ module CLI module ResumeNodeTypes module_function - def key_of_type?(hash, key, collection_type) + def key_of_type?(hash, key, type) return false unless hash.length == 1 - hash.key?(key) && hash[key].is_a?(collection_type) + hash.key?(key) && hash[key].is_a?(type) end module AlignValue