Class: Sorting::SmoothSort::HeapHelper
- Inherits:
-
Object
- Object
- Sorting::SmoothSort::HeapHelper
- Defined in:
- lib/sorting/smooth_sort.rb
Instance Attribute Summary collapse
-
#bit_trees ⇒ Object
Returns the value of attribute bit_trees.
-
#smallest_heap_size ⇒ Object
Returns the value of attribute smallest_heap_size.
Instance Method Summary collapse
-
#initialize ⇒ HeapHelper
constructor
A new instance of HeapHelper.
Constructor Details
#initialize ⇒ HeapHelper
Returns a new instance of HeapHelper.
22 23 24 25 |
# File 'lib/sorting/smooth_sort.rb', line 22 def initialize @bit_trees = 0 @smallest_heap_size = 0 end |
Instance Attribute Details
#bit_trees ⇒ Object
Returns the value of attribute bit_trees.
20 21 22 |
# File 'lib/sorting/smooth_sort.rb', line 20 def bit_trees @bit_trees end |
#smallest_heap_size ⇒ Object
Returns the value of attribute smallest_heap_size.
21 22 23 |
# File 'lib/sorting/smooth_sort.rb', line 21 def smallest_heap_size @smallest_heap_size end |