Class: LabwareCreators::Uncreatable

Inherits:
Base
  • Object
show all
Defined in:
app/models/labware_creators/uncreatable.rb

Overview

Purposes with the Uncreatable creator can’t be created, so will not appear in the ‘Other plates’ dropdown. This should be reserved for labware which will fail to function correctly if created through Limber. In practice this class behaves just like the base creator, but has been sub-classed to better communicate its intent.

Class Method Summary collapse

Constructor Details

This class inherits a constructor from LabwareCreators::Base

Class Method Details

.support_parent?(_parent) ⇒ Boolean

Note:

This actually duplicates the behaviour on the base class, so is not required for correct functionality. However I’ve decided to include it here for reasons of clarity.

This creator is invalid for all parents.

Returns:

  • (Boolean)


14
15
16
# File 'app/models/labware_creators/uncreatable.rb', line 14

def self.support_parent?(_parent)
  false
end