Class: NameQuery
- Inherits:
-
Object
- Object
- NameQuery
- 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
- #frequency_table ⇒ Object
-
#initialize(name) ⇒ NameQuery
constructor
A new instance of NameQuery.
- #variants ⇒ Object
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_table ⇒ Object
41 42 43 |
# File 'lib/alphabets/variants.rb', line 41 def frequency_table @freq ||= Alphabet.frequency_table( @name ) end |
#variants ⇒ Object
45 46 47 |
# File 'lib/alphabets/variants.rb', line 45 def variants @variants ||= find_variants end |