Class: Stockade::Lexemes::Word
- Defined in:
- lib/stockade/lexemes/word.rb
Overview
A word found is common words dictionary
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#mask ⇒ Object
common dictionary words are safe.
- #token ⇒ Object
Methods inherited from Dict
#capitalized?, #common_word?, dict, #name, regex, #valid?
Methods inherited from Base
#==, #end_pos, #initialize, #range, regex, #type, types, #valid?, #value
Constructor Details
This class inherits a constructor from Stockade::Lexemes::Base
Class Method Details
.dict_name ⇒ Object
7 8 9 |
# File 'lib/stockade/lexemes/word.rb', line 7 def self.dict_name 'words' end |
Instance Method Details
#mask ⇒ Object
common dictionary words are safe
12 13 14 |
# File 'lib/stockade/lexemes/word.rb', line 12 def mask raw_value end |
#token ⇒ Object
16 17 18 |
# File 'lib/stockade/lexemes/word.rb', line 16 def token raw_value end |