lib/abide_dev_utils/xccdf/parser/objects/digest_object.rb
# Returns a string of all instance variable values that are not nil, empty, or excluded
Returns a string of all instance variable values that are not nil, empty, or excluded
Returns a string of all instance variable values that are not nil empty or excluded
def digestable_instance_variables
            instance_vars = instance_variables.reject { |iv| @exclude_from_digest.include?(iv) }.sort_by!(&:to_s)
            return 'empty' if instance_vars.empty?
            var_vals = instance_vars.map { |iv| instance_variable_get(iv) }
            var_vals.reject! { |v| v.nil? || v.empty? }
            return 'empty' if var_vals.empty?
            var_vals.join
          end
def digestable_instance_variables instance_vars = instance_variables . reject { | iv | @exclude_from_digest . include? ( iv ) } . sort_by! ( & :to_s ) return 'empty' if instance_vars . empty? var_vals = instance_vars . map { | iv | instance_variable_get ( iv ) } var_vals . reject! { | v | v . nil? || v . empty? } return 'empty' if var_vals . empty? var_vals . join end
Returns a string of all instance variable values that are not nil, empty, or excluded
Returns a string of all instance variable values that are not nil empty or excluded