loading...

Discussion on: Daily Challenge #110 - Love VS. Friendship

Collapse
citizen428 profile image
Michael Kohl

Just a friendly tip: alphabet really shouldn't be a class variable @@, they are very seldom what you want in Ruby:

railstips.org/blog/archives/2006/1...

In this specific case a constant would be the most common:

ALPHABET = ('a'..'z').to_a
Collapse
dak425 profile image
Donald Feury

Ah okay gotcha, thank ya for the tip!