method
gets
v1_8_7_330 -
Show latest stable
- Class:
RubyLex
gets()public
No documentation available.
# File lib/irb/ruby-lex.rb, line 122
def gets
l = ""
while c = getc
l.concat(c)
break if c == "\n"
end
return nil if l == "" and c.nil?
l
end