Class: WPScan::DB::Sponsor

Inherits:
Object
  • Object
show all
Defined in:
lib/wpscan/db/sponsor.rb

Class Method Summary collapse

Class Method Details

.file_pathObject



11
12
13
# File 'lib/wpscan/db/sponsor.rb', line 11

def self.file_path
  @file_path ||= DB_DIR.join('sponsor.txt')
end

.textHash

Returns:

  • (Hash)


7
8
9
# File 'lib/wpscan/db/sponsor.rb', line 7

def self.text
  @text ||= file_path.exist? ? File.read(file_path).chomp : ''
end