If this method is renamed to partitions, then you don't need the attr_accessor, and the method can do it's own memoization, like so...

```ruby
def partitions
  @partitions ||= begin
    # build the array as you do now
  end
end