Class: PersonalWordlistCLI::PatternFile
- Inherits:
-
Object
- Object
- PersonalWordlistCLI::PatternFile
- Defined in:
- lib/personal_wordlist_cli/pattern_file.rb
Instance Method Summary collapse
- #evaluate! ⇒ Object
-
#initialize(path) ⇒ PatternFile
constructor
A new instance of PatternFile.
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 |