Code Duplication    Length = 7-7 lines in 2 locations

lib/nose/backend.rb 2 locations

@@ 338-344 (lines=7) @@
335
336
      # Add an insert step to a prepared update plan
337
      # @return [void]
338
      def add_insert_step(plan, steps, fields)
339
        step_class = InsertStatementStep
340
        subclass_step_name = step_class.name.sub \
341
          'NoSE::Backend::BackendBase', self.class.name
342
        step_class = Object.const_get subclass_step_name
343
        steps << step_class.new(client, plan.index, fields)
344
      end
345
346
      # Prepare plans for each support query
347
      # @return [Array<PreparedQuery>]
@@ 328-334 (lines=7) @@
325
326
      # Add a delete step to a prepared update plan
327
      # @return [void]
328
      def add_delete_step(plan, steps)
329
        step_class = DeleteStatementStep
330
        subclass_step_name = step_class.name.sub \
331
          'NoSE::Backend::BackendBase', self.class.name
332
        step_class = Object.const_get subclass_step_name
333
        steps << step_class.new(client, plan.index)
334
      end
335
336
      # Add an insert step to a prepared update plan
337
      # @return [void]