Class: CaTissue::SpecimenArrayType

Inherits:
Object
  • Object
show all
Defined in:
lib/catissue/domain/specimen_array_type.rb

Instance Method Summary collapse

Instance Method Details

#can_hold_child?(storable) ⇒ Boolean

Returns true if Storable is a Specimen and supported by this SpecimenArrayType.

Returns:

  • (Boolean)


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_classObject

Returns SpecimenArray.



6
7
8
# File 'lib/catissue/domain/specimen_array_type.rb', line 6

def container_class
  CaTissue::SpecimenArray
end