Class: Highscore::Blacklist

Inherits:
Wordlist show all
Defined in:
lib/highscore/blacklist.rb

Overview

blacklisted words to be ignored in the resulting keywords

Instance Attribute Summary

Attributes inherited from Wordlist

#words

Class Method Summary collapse

Methods inherited from Wordlist

#<<, #each, #include?, #initialize, #length, load, load_file, #to_a

Constructor Details

This class inherits a constructor from Highscore::Wordlist

Class Method Details

.load_default_fileObject

load default file

Returns:

  • Highscore::Blacklist



13
14
15
16
# File 'lib/highscore/blacklist.rb', line 13

def self.load_default_file
  file_path = File.join(File.dirname(__FILE__), %w{.. blacklist.txt})
  self.load_file(file_path)
end