Method: TraceableSet#unchanged_trace_ids

Defined in:
lib/wortsammler/class.Traceable.rb

#unchanged_trace_ids(reference_set, category = nil) ⇒ Array

expose unchanged traceables

Parameters:

  • reference_set (TraceableSet)

    the set of traceables used as reference

  • category (Symbol) (defaults to: nil)

    Restrict the operation to traceables of this category.

Returns:

  • (Array)

    List of trace_id which unchanged



90
91
92
93
94
95
# File 'lib/wortsammler/class.Traceable.rb', line 90

def unchanged_trace_ids(reference_set, category = nil)
  candidates = self.all_trace_ids(category) & reference_set.all_trace_ids(category)
  candidates.select { |candidate|
    self[candidate].get_diff(reference_set[candidate]).nil?
  }.compact
end