Module: Hiwai
- Defined in:
- lib/hiwai.rb,
lib/hiwai/masked.rb,
lib/hiwai/version.rb,
lib/hiwai/censorable_words.rb
Defined Under Namespace
Modules: CensorableWords, Masked
Classes: Censored, MaskedRegexp, MaskedString
Constant Summary
collapse
- GEM_ROOT =
File.dirname(__FILE__) + '/..'
- VERSION =
'0.0.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.dictionary ⇒ Object
Returns the value of attribute dictionary.
12
13
14
|
# File 'lib/hiwai.rb', line 12
def dictionary
@dictionary
end
|
Class Method Details
.censorable_words ⇒ Object
14
15
16
|
# File 'lib/hiwai.rb', line 14
def censorable_words
@censorable_words ||= CensorableWords.load(read_dictionary)
end
|
.read_dictionary ⇒ Object
22
23
24
|
# File 'lib/hiwai.rb', line 22
def read_dictionary
File.read(dictionary)
end
|
18
19
20
|
# File 'lib/hiwai.rb', line 18
def reset!
@censorable_words = nil
end
|