# File lib/bson/grow.rb, line 105 def push_doc(bson) # Appends BSON doc with correct key finished @a_index ||= [0] @b_pos ||= [0] put(BSON::BSON_RUBY::OBJECT, @str.size - @b_pos.size) put_binary(@a_index[-1].to_s) put(0) @a_index[-1] += 1 put_binary(bson.to_s) finish! end