class Tapioca::Gem::Pipeline

def defined_in_gem?(constant, strict: true)

: (Module constant, ?strict: bool) -> bool
def defined_in_gem?(constant, strict: true)
  files = get_file_candidates(constant)
    .merge(Runtime::Trackers::ConstantDefinition.files_for(constant))
  return !strict if files.empty?
  files.any? do |file|
    @gem.contains_path?(file)
  end
end