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

def struct_superclass_name(superclass)

def struct_superclass_name(superclass)
  match = superclass.match(/\A(Struct)\.new\((.*?)\)/)
  if match
    paramstring = match[2].split(",")
    first = paramstring.first.strip
    if first[0, 1] =~ /['"]/ && first[-1, 1] =~ /['"]/ && first !~ /\#\{/
      return "Struct::#{first[1..-2]}"
    end
  end
  "Struct"
end