Class: Stockade::Lexemes::Word

Inherits:
Dict
  • Object
show all
Defined in:
lib/stockade/lexemes/word.rb

Overview

A word found is common words dictionary

Instance Attribute Summary

Attributes inherited from Base

#raw_value, #start_pos

Class Method Summary collapse

Instance Method Summary collapse

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_nameObject



7
8
9
# File 'lib/stockade/lexemes/word.rb', line 7

def self.dict_name
  'words'
end

Instance Method Details

#maskObject

common dictionary words are safe



12
13
14
# File 'lib/stockade/lexemes/word.rb', line 12

def mask
  raw_value
end

#tokenObject



16
17
18
# File 'lib/stockade/lexemes/word.rb', line 16

def token
  raw_value
end