Sha256: aa66a5ae6281f1c1fec98d9ef4c5949b4d78525fbfe9455633a490c76c1dc8ef
Contents?: true
Size: 291 Bytes
Versions: 23
Compression:
Stored size: 291 Bytes
Contents
module Kernel # call-seq: # obj.yield_self {|_obj|...} -> an_object # # Yields <i>obj</i> and returns the result. # # 'my string'.yield_self {|s|s.upcase} #=> "MY STRING" # def yield_self(&block) return to_enum :yield_self unless block block.call(self) end end
Version data entries
23 entries across 23 versions & 2 rubygems