libraries/PlateReaderHelper.rb
# A way to filter Struct objects (depriciated)
# ie: catalog(pr.measurement_data, by: :item) #=> sorting symbol should be known by user. It is a instance method created in a Struct class
A way to filter Struct objects (depriciated)
ie: catalog(pr.measurement_data, by: :item) #=> sorting symbol should be known by user. It is a instance method created in a Struct class
A way to filter Struct objects ( depriciated ) ie : catalog ( pr . measurement_data by : : item ) # = > sorting symbol should be known by user . It is a instance method created in a Struct class
def catalog(collection, by:)
    catalog = Hash.new { |hash, key| hash[key] = [] }
    collection.each_with_object(catalog) do |item, catalog|
      catalog[item.send(by)] << item
    end
  end
def catalog ( collection , by : ) catalog = Hash . new { | hash , key | hash [ key ] = [ ] } collection . each_with_object ( catalog ) do | item , catalog | catalog [ item . send ( by ) ] << item end end
A way to filter Struct objects (depriciated)
ie: catalog(pr.measurement_data, by: :item) #=> sorting symbol should be known by user.
A way to filter Struct objects ( depriciated ) ie : catalog ( pr . measurement_data by : : item ) # = > sorting symbol should be known by user .
collection
by