method
gets
gets()
public
Hide source
# File lib/irb/ruby-lex.rb, line 121 def gets l = "" while c = getc l.concat(c) break if c == "\n" end return nil if l == "" and c.nil? l end


