Class: BruteTools::DataProvider::Base
- Inherits:
-
Object
- Object
- BruteTools::DataProvider::Base
- Defined in:
- lib/brutetools/base/data_provider.rb
Instance Method Summary collapse
-
#next ⇒ Object
Get next data portion (next word from dictionary etc).
-
#regress ⇒ Object
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.
Instance Method Details
#next ⇒ Object
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 |
#regress ⇒ Object
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 |