Module: StringUtilityBelt::MatchRank
- Included in:
- String
- Defined in:
- lib/string_utility_belt/match_rank.rb
Defined Under Namespace
Classes: MATCHRANK
Instance Method Summary collapse
- #match_and_score_by(words) ⇒ Object
- #total_frequency_by(words) ⇒ Object
- #words_frequency_by(words) ⇒ Object
Instance Method Details
#match_and_score_by(words) ⇒ Object
92 93 94 |
# File 'lib/string_utility_belt/match_rank.rb', line 92 def match_and_score_by(words) measure.frequency(:template => :precision, :search_words => words) end |
#total_frequency_by(words) ⇒ Object
84 85 86 |
# File 'lib/string_utility_belt/match_rank.rb', line 84 def total_frequency_by(words) measure.frequency(:template => :total, :search_words => words) end |
#words_frequency_by(words) ⇒ Object
88 89 90 |
# File 'lib/string_utility_belt/match_rank.rb', line 88 def words_frequency_by(words) measure.frequency(:template => :grouped_words, :search_words => words) end |