Sha256: 118fcafef6abeed645a3a168f76c50af66cd92f73a93ea5520f81f3acffd1cc3
Contents?: true
Size: 138 Bytes
Versions: 27
Compression:
Stored size: 138 Bytes
Contents
class Object def try(*args, &block) return if self.nil? block.given? ? yield(self) : self.__send__(args.shift, *args) end end
Version data entries
27 entries across 27 versions & 1 rubygems