Class: CaTissue::SpecimenArrayType
- Inherits:
-
Object
- Object
- CaTissue::SpecimenArrayType
- Defined in:
- lib/catissue/domain/specimen_array_type.rb
Instance Method Summary collapse
-
#can_hold_child?(storable) ⇒ Boolean
Returns true if Storable is a Specimen and supported by this SpecimenArrayType.
-
#container_class ⇒ Object
Returns SpecimenArray.
Instance Method Details
#can_hold_child?(storable) ⇒ Boolean
Returns true if Storable is a Specimen and supported by this SpecimenArrayType.
11 12 13 |
# File 'lib/catissue/domain/specimen_array_type.rb', line 11 def can_hold_child?(storable) Specimen === storable and storable.specimen_class == specimen_class and specimen_types.include?(storable.specimen_type) end |
#container_class ⇒ Object
Returns SpecimenArray.
6 7 8 |
# File 'lib/catissue/domain/specimen_array_type.rb', line 6 def container_class CaTissue::SpecimenArray end |