gets

gets(eol=$/, limit=nil)
Instance Public methods

Reads the next âline+ from the stream. Lines are separated by eol. If limit is provided the result will not be longer than the given number of bytes.

eol may be a String or Regexp.

Unlike IO#gets the line read will not be assigned to +$_+.

Unlike IO#gets the separator must be provided if a limit is provided.

doc_ruby_on_rails
2015-04-24 20:16:38
Comments
Leave a Comment

Please login to continue.