class Tapioca::Gem::Pipeline

def constant_in_gem?(name)

: ((String | Symbol) name) -> bool
def constant_in_gem?(name)
  loc = const_source_location(name)
  # If the source location of the constant isn't available or is "(eval)", all bets are off.
  return true if loc.nil? || loc.file.nil? || loc.file == "(eval)"
  gem.contains_path?(loc.file)
end