Class: TestBoosters::Files::LeftoverFiles
- Inherits:
-
Object
- Object
- TestBoosters::Files::LeftoverFiles
- Defined in:
- lib/test_boosters/files/leftover_files.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
Instance Method Summary collapse
-
#initialize(files) ⇒ LeftoverFiles
constructor
A new instance of LeftoverFiles.
- #select(options = {}) ⇒ Object
Constructor Details
#initialize(files) ⇒ LeftoverFiles
Returns a new instance of LeftoverFiles.
7 8 9 |
# File 'lib/test_boosters/files/leftover_files.rb', line 7 def initialize(files) @files = files end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
5 6 7 |
# File 'lib/test_boosters/files/leftover_files.rb', line 5 def files @files end |
Instance Method Details
#select(options = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/test_boosters/files/leftover_files.rb', line 11 def select( = {}) index = .fetch(:index) total = .fetch(:total) file_distribution(total)[index] end |