Sha256: b2adbffd2e17d2bf7641647d8c9a139c72dbf7d1c62e106c89a8ea5d99aad89b
Contents?: true
Size: 272 Bytes
Versions: 1
Compression:
Stored size: 272 Bytes
Contents
class Object # Returns self. If given a block, it works a lot like Object#tap # # ==== Examples # # [1,2,3,5,7].consecutive_by(&:identity) # => [[1, 2, 3], [5], [7]] def identity if block_given? yield self else self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inactive_support-1.1.0 | lib/inactive_support/object/identity.rb |