gets() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/irb/input-method.rb, line 96
      def gets
        if l = readline(@prompt, false)
          HISTORY.push(l) if !l.empty?
          @line[@line_no += 1] = l + "\n"
        else
          @eof = true
          l
        end
      end
Register or log in to add new notes.