def f return to_enum(__method__).first unless block_given? yield :yield p :endend p [1, f]p [2, f{4}]
Standard input is empty
[1, :yield] :end [2, :end]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!