class YARD::Parser::Ruby::Legacy::RubyLex

def gets

def gets
  (c = getc) || return
  l = ""
  begin
    l.concat c unless c == "\r"
    break if c == "\n"
  end while c = getc # rubocop:disable Lint/Loop
  l
end