lib/sixword/words.rb in sixword-0.0.1 vs lib/sixword/words.rb in sixword-0.1.0
- old
+ new
@@ -257,10 +257,13 @@
"WIND", "WINE", "WING", "WINK", "WINO", "WIRE", "WISE", "WISH",
"WITH", "WOLF", "WONT", "WOOD", "WOOL", "WORD", "WORE", "WORK",
"WORM", "WORN", "WOVE", "WRIT", "WYNN", "YALE", "YANG", "YANK",
"YARD", "YARN", "YAWL", "YAWN", "YEAH", "YEAR", "YELL", "YOGA",
"YOKE" ]
+
+ # mutability sucks
WORDS.freeze
+ WORDS.each(&:freeze)
WORDS_HASH = Hash[WORDS.each_with_index.to_a]
WORDS_HASH.freeze
end