lib/sixword/words.rb in sixword-0.3.4 vs lib/sixword/words.rb in sixword-0.3.5
- old
+ new
@@ -256,14 +256,10 @@
"WHEN", "WHET", "WHOA", "WHOM", "WICK", "WIFE", "WILD", "WILL",
"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)
+ "YOKE" ].map(&:freeze).freeze
# A mapping from Word => Integer index in the word list
WORDS_HASH = Hash[WORDS.each_with_index.to_a]
WORDS_HASH.freeze
end