השיעור הזה זמין כרגע באנגלית.
Blocks and iterators
A block is a piece of code you pass to a method, written between { } or do ... end. Ruby's collections are built around blocks, and they turn loops into short, readable lines.
השיעור הזה זמין כרגע באנגלית.
A block is a piece of code you pass to a method, written between { } or do ... end. Ruby's collections are built around blocks, and they turn loops into short, readable lines.