method

read

ruby latest stable - Class: Gem::StringSource

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

read(count=nil)
public

No documentation available.

# File lib/rubygems/util/stringio.rb, line 23
  def read(count=nil)
    if count
      @string.slice!(0,count)
    else
      s = @string
      @string = ""
      s
    end
  end