Sha256: e00b4097036d6147bb88b0bd7802784c9972b35bb7abf8c13f2c9a43dd58fbb9
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
module Kernel # call-seq: # obj.yield_self {|_obj|...} -> an_object # obj.then {|_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 alias then yield_self end
Version data entries
2 entries across 2 versions & 1 rubygems