Class: PersonalWordlistCLI::PatternFile

Inherits:
Object
  • Object
show all
Defined in:
lib/personal_wordlist_cli/pattern_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ PatternFile

Returns a new instance of PatternFile.



3
4
5
# File 'lib/personal_wordlist_cli/pattern_file.rb', line 3

def initialize(path)
  @file_content = File.read(path)
end

Instance Method Details

#evaluate!Object



7
8
9
# File 'lib/personal_wordlist_cli/pattern_file.rb', line 7

def evaluate!
  eval "proc { #{@file_content} }"
end