Class: Slices::AvailableSlices

Inherits:
Object
  • Object
show all
Defined in:
lib/slices/available_slices.rb

Class Method Summary collapse

Class Method Details

.allObject



4
5
6
7
8
9
10
# File 'lib/slices/available_slices.rb', line 4

def self.all
  # We've memoized the slices so that we never try and load them all
  # twice. If we iterate over ObjectSpace twice (see find_all_slices)
  # we sometimes find that an incomplete set of slices objects is
  # returned on subsequent calls.
  @all ||= find_all_slices
end