Starting Automata

Not even close, but I have a few questions. Can Ruby calculate the
binary or do I need to tell it to? See def rule_30. Also - how do I get
the program to read the array in sets of three at a time without
duplicating myself for each set? :(