lib/mongo/gridfs/grid_store.rb
# Writes +string+ as bytes and returns the number of bytes written.
Writes +string+ as bytes and returns the number of bytes written.
Writes + string + as bytes and returns the number of bytes written .
def write(string)
          raise "#@filename not opened for write" unless @mode[0] == ?w
          count = 0
          string.each_byte { |byte|
            self.putc byte
            count += 1
          }
          count
        end
def write ( string ) raise "#@filename not opened for write" unless @mode [ 0 ] == ?w count = 0 string . each_byte { | byte | self . putc byte count += 1 } count end
Writes +string+ as bytes and returns the number of bytes written.
Writes + string + as bytes and returns the number of bytes written .
string
<not_specific>