Class: BruteTools::DataProvider::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/brutetools/base/data_provider.rb

Instance Method Summary collapse

Instance Method Details

#nextObject

Get next data portion (next word from dictionary etc)



6
7
8
# File 'lib/brutetools/base/data_provider.rb', line 6

def next
  raise "You must implement this!"
end

#regressObject

Just one step back in data portion queue (one word back in dictionary) Calling ‘next`, then `regress`, thn `next` again must return the same value. Depending on a situation, you may even have to implement a history of `next`s!



13
14
15
# File 'lib/brutetools/base/data_provider.rb', line 13

def regress
  raise "You must implement this!"
end