module Sprockets::DigestUtils

def digest(obj)

Experimental RBS support (using type sampling data from the type_fusion project).

def digest: ((String | Array[String]) obj) -> String

This signature was generated using 52 samples from 5 applications.

Returns a String digest of the object.

obj - A JSON serializable object.

wicked fast. Microbenchmarks away!
This is used for generating cache keys, so its pretty important its

Internal: Generate a hexdigest for a nested JSON serializable object.
def digest(obj)
  build_digest(obj).digest
end