class Buffer

Public Class Methods

new( *args ) click to toggle source
# File lib/bytes.rb, line 56
def self.new( *args )
  if args.size == 0
    ## note: use "" to always use default encoding (and NOT binary)
    String.new( "" )
  else
    String.new( *args )
  end
end