We discussed a classic example of blocks, sorting, using a person class and Procs. We used the yield command to write an infinite list for the fibonacci numbers. Finally, we saw how blocks can be used for encapsulation in file IO.

Check out the documentation for Enumerable.