fork(1) download
  1. module MyEnumerables
  2. def myEach
  3. for i in self
  4. yield(i)
  5. end
  6. self
  7. end
  8. end
  9.  
  10. include MyEnumerables
  11. (1..5).myEach do |n|
  12. puts n
  13. end
Success #stdin #stdout 0.06s 9656KB
stdin
Standard input is empty
stdout
1
2
3
4
5