# File lib/rd/document-struct.rb, line 24 def is_valid?(parent, child) each_relationship do |i| return true if i.match?(parent, child) end false end