Class: NameQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/alphabets/variants.rb

Overview

expiremental class - use (just) Name or NameQ or NameVariant or NameAnalyzer/Query or similar - why? why not?

let's wait for now with usage - let's add more methods as we go along and find more - why? why not?

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ NameQuery

Returns a new instance of NameQuery.



37
38
39
# File 'lib/alphabets/variants.rb', line 37

def initialize( name )
  @name = name
end

Instance Method Details

#frequency_tableObject



41
42
43
# File 'lib/alphabets/variants.rb', line 41

def frequency_table
  @freq ||= Alphabet.frequency_table( @name )
end

#variantsObject



45
46
47
# File 'lib/alphabets/variants.rb', line 45

def variants
  @variants ||= find_variants
end