Class: PangrammicSurplus::WordHash

Inherits:
Object
  • Object
show all
Defined in:
lib/pangrammic_surplus/word_hash.rb

Class Method Summary collapse

Class Method Details

.for(integer) ⇒ Object



4
5
6
7
8
# File 'lib/pangrammic_surplus/word_hash.rb', line 4

def for(integer)
  @memo ||= {}
  @memo[integer] ||= hash_for(integer)
  @memo[integer].clone
end