Class: KnapsackPro::BaseAllocatorBuilder
- Inherits:
-
Object
- Object
- KnapsackPro::BaseAllocatorBuilder
show all
- Defined in:
- lib/knapsack_pro/base_allocator_builder.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseAllocatorBuilder.
3
4
5
|
# File 'lib/knapsack_pro/base_allocator_builder.rb', line 3
def initialize(adapter_class)
@adapter_class = adapter_class
end
|
Instance Method Details
#allocator ⇒ Object
7
8
9
|
# File 'lib/knapsack_pro/base_allocator_builder.rb', line 7
def allocator
raise NotImplementedError
end
|
#test_dir ⇒ Object
11
12
13
|
# File 'lib/knapsack_pro/base_allocator_builder.rb', line 11
def test_dir
test_file_pattern.split('/').first.gsub(/({)/, '')
end
|