lib/abide_dev_utils/xccdf/diff/benchmark.rb
# Returns a diff of the changes from the "self" xml (xml1) to the "other" xml (xml2)
# This function is memoized because the diff operation is expensive. To run the diff
# operation again, set the `new` parameter to `true`
# @param new [Boolean] Set to `true` to force a new diff operation
# return [Hash] the diff in hash format
Returns a diff of the changes from the "self" xml (xml1) to the "other" xml (xml2)
This function is memoized because the diff operation is expensive. To run the diff
operation again, set the `new` parameter to `true`
Returns a diff of the changes from the " self " xml ( xml1 ) to the " other " xml ( xml2 ) This function is memoized because the diff operation is expensive . To run the diff operation again set the ` new ` parameter to ` true `
def diff(new: false)
          return @diff if @diff && !new
          @diff = {}
          @diff[:number_title] = number_title_diff
          { from: from_benchmark, to: to_benchmark, diff: @diff }
        end
def diff ( new : false ) return @diff if @diff && ! new @diff = { } @diff [ :number_title ] = number_title_diff { from : from_benchmark , to : to_benchmark , diff : @diff } end
Returns a diff of the changes from the "self" xml (xml1) to the "other" xml (xml2)
This function is memoized because the diff operation is expensive.
Returns a diff of the changes from the " self " xml ( xml1 ) to the " other " xml ( xml2 ) This function is memoized because the diff operation is expensive .
new
Set to `true` to force a new diff operation return [Hash] the diff in hash format
Set to ` true ` to force a new diff operation return [ Hash ] the diff in hash format