re: Daily Challenge #110 - Love VS. Friendship VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I started picking up ruby for rails, so here is my shining gem. Try it out here word.rb class Word @@alphabet = ('a'..'z').to_a def self.t...
 

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
 
code of conduct - report abuse