class YARD::RegistryResolver

def validate(obj, type)

return [Boolean] if the obj's type matches the provided type.
def validate(obj, type)
  !type || (obj && obj.type == type) ? obj : nil
end