class RDoc::Parser::Ruby

def get_class_specification

def get_class_specification
  tk = peek_tk
  if tk.nil?
    return ''
  elsif :on_kw == tk[:kind] && 'self' == tk[:text]
    return 'self'
  elsif :on_gvar == tk[:kind]
    return ''
  end
  res = get_constant
  skip_tkspace_without_nl
  get_tkread # empty out read buffer
  tk = get_tk
  return res unless tk
  case tk[:kind]
  when :on_nl, :on_comment, :on_embdoc, :on_semicolon then
    unget_tk(tk)
    return res
  end
  res += parse_call_parameters(tk)
  res
end