Sha256: c785d3aed969fe60d358efc43aafc82c83afd90a25f112cc9d19b933c97739f5
Contents?: true
Size: 291 Bytes
Versions: 9
Compression:
Stored size: 291 Bytes
Contents
def identity(obj): return obj class cached_property(object): def __init__(self, func): self.func = func def __get__(self, obj, cls): if obj is None: return self value = obj.__dict__[self.func.__name__] = self.func(obj) return value
Version data entries
9 entries across 9 versions & 2 rubygems