3 # obj.yield_self {|_obj|...} -> an_object
4 # obj.then {|_obj|...} -> an_object
6 # Yields <i>obj</i> and returns the result.
8 # 'my string'.yield_self {|s|s.upcase} #=> "MY STRING"
10 def yield_self(&block)
11 return to_enum :yield_self unless block