lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.6.1 vs lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.6.2
- old
+ new
@@ -24,31 +24,31 @@
def dig(...)
value.dig(...)
end; respond_to?(:ruby2_keywords, true) && (ruby2_keywords :dig)
- def record_value(val, *path, **__kwrest__)
+ def record_value(val, *path, **opts)
key = path.pop
trace = if val.is_a?(Hash)
- Trace.new.tap { it = _1;it.merge_values(val, **__kwrest__) }
+ Trace.new.tap { it = _1;it.merge_values(val, **opts) }
else
- Trace.new(:value, val, **__kwrest__)
+ Trace.new(:value, val, **opts)
end
target_trace = path.empty? ? self : value.dig(*path)
target_trace.record_key(key.to_s, trace)
val
end
- def merge_values(hash, **__kwrest__)
+ def merge_values(hash, **opts)
return hash unless hash
hash.each do |key, val|
if val.is_a?(Hash)
- value[key.to_s].merge_values(val, **__kwrest__)
+ value[key.to_s].merge_values(val, **opts)
else
- value[key.to_s] = Trace.new(:value, val, **__kwrest__)
+ value[key.to_s] = Trace.new(:value, val, **opts)
end
end
hash
end