mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
11 lines
264 B
Ruby
11 lines
264 B
Ruby
class Blacklist
|
|
attr_accessor :blacklisted_words
|
|
def initialize
|
|
self.blacklisted_words = File.readlines(BLACKLISTED_WORDS_FILE)
|
|
self.blacklisted_words.map! { |w| w.strip }
|
|
end
|
|
|
|
def is_blacklisted?(word)
|
|
blacklisted_words.include? word
|
|
end
|
|
end |