class YARD::Handlers::Ruby::Legacy::ClassHandler

def parse_superclass(superclass)

def parse_superclass(superclass)
  case superclass
  when /\A(#{NAMESPACEMATCH})(?:\s|\Z)/,
       /\A(Struct|OStruct)\.new/,
       /\ADelegateClass\((.+?)\)\s*\Z/,
       /\A(#{NAMESPACEMATCH})\(/
    $1
  when "self"
    namespace.path
  end
end