Skip to content

Commit

Permalink
make a public load_factor getter
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrisonJ committed May 17, 2024
1 parent c32460f commit 481f71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sorted_containers/sorted_array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SortedArray
# Sublists are split when they exceed 2 * load_factor
DEFAULT_LOAD_FACTOR = 1000

attr_reader :size
attr_reader :size, :load_factor
alias length size

# Initializes a new SortedArray object.
Expand Down Expand Up @@ -1607,7 +1607,7 @@ def include_eql?(value)
index ? self[index].eql?(value) : false
end

attr_accessor :lists, :maxes, :array_index, :offset, :load_factor
attr_accessor :lists, :maxes, :array_index, :offset

attr_writer :size
end
Expand Down

0 comments on commit 481f71e

Please sign in to comment.