Module: PlatesHelper

Defined in:
app/helpers/plates_helper.rb

Defined Under Namespace

Classes: AliquotError

Instance Method Summary collapse

Instance Method Details

#padded_wells_by_row(plate) ⇒ Object



6
7
8
9
# File 'app/helpers/plates_helper.rb', line 6

def padded_wells_by_row(plate)
  wells = wells_hash(plate)
  padded_well_name_with_index(plate) { |padded_name, index| yield(padded_name, *wells[index]) }
end

#plate_creator_options(plate_creators) ⇒ Object



11
12
13
# File 'app/helpers/plates_helper.rb', line 11

def plate_creator_options(plate_creators)
  plate_creators.pluck(:name, :id, :valid_options).map { |name, id, options| [name, id, { data: options }] }
end