lib/seed-fu/writer.rb
def <<(seed)
      raise "You must add seeds inside a SeedFu::Writer#write block" unless @io

      buffer = ''

      if chunk_this_seed?
        buffer << seed_footer
        buffer << "# BREAK EVAL\n"
        buffer << seed_header
      end

      buffer << ",\n"
      buffer << '  ' + seed.inspect

      @io.write(buffer)

      @count += 1
    end
def <<(seed)
      raise "You must add seeds inside a SeedFu::Writer#write block" unless @io

      buffer = ''

      if chunk_this_seed?
        buffer << seed_footer
        buffer << "# BREAK EVAL\n"
        buffer << seed_header
      end

      buffer << ",\n"
      buffer << '  ' + seed.inspect

      @io.write(buffer)

      @count += 1
    end
def << ( seed ) raise "You must add seeds inside a SeedFu::Writer#write block" unless @io buffer = '' if chunk_this_seed? buffer << seed_footer buffer << "# BREAK EVAL\n" buffer << seed_header end buffer << ",\n" buffer << '  ' + seed . inspect @io . write ( buffer ) @count += 1 end
Add a seed. Must be called within a block passed to {#write}.
 @param [Hash] seed The attributes for the seed
Add a seed . Must be called within a block passed to { #write } .