method
gets
ruby latest stable - Class:
RubyLex
gets()public
No documentation available.
# 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