Skip to content

Instantly share code, notes, and snippets.

Team 'Were not Cheaters!'

Here is the solution we arrived at.

Solution 1

require 'prime'
@csigg
csigg / gist:4716877
Last active December 12, 2015 04:48
My most useful Block entry, I mean blog entry ever! ...seriously stop snickering. A bit on the usefulness of the Block. (v2)

Blocks

After learning a bit about Ruby and the basic way that data is stored and manipulated I came across the concept of the Block.

I was enthralled...and bewildered.

The concept seemed simple enough. Blocks are pieces of code, or instructions, that are passed to a function.