ruby - Practical reasons to use procs? -
i learning ruby , understand concepts of blocks, procs puzzling me.
can illustrate practical use-cases benefit using procs, beginner understand?
the canonical example command pattern, e.g., map strings procs:
the command arrives , dispatched associated proc via map.
Comments
Post a Comment