# File lib/amalgalite/blob.rb, line 136 def write_to_io( io ) if source.respond_to?( :read ) then while buf = source.read( block_size ) do io.write( buf ) end else io.write( source.to_s ) end if close_source_after_read? then source.close end end