lib/kitchen/id_tracker.rb
# Keeps track that an element with the given ID has been copied.  When such
# elements are pasted, this information is used to give those elements unique
# IDs that don't duplicate the original element.
#
# @param id [String] the ID
#
Keeps track that an element with the given ID has been copied.  When such
elements are pasted, this information is used to give those elements unique
IDs that don't duplicate the original element.
Keeps track that an element with the given ID has been copied . When such elements are pasted this information is used to give those elements unique IDs that don ' t duplicate the original element .
def record_id_copied(id)
      return if id.blank?
      @id_data[id][:count] += 1
      @id_data[id][:last_pasted] = false
    end
def record_id_copied ( id ) return if id . blank? @id_data [ id ] [ :count ] += 1 @id_data [ id ] [ :last_pasted ] = false end
Keeps track that an element with the given ID has been copied.
Keeps track that an element with the given ID has been copied .
id
None