lib/catissue/helpers/storage_type_holder.rb
def add_child_type(type)
      case type
        when CaTissue::StorageType then add_storage_type(type)
        when CaTissue::SpecimenArrayType then add_specimen_array_type(type)
        when String then add_specimen_class(type)
        else raise ArgumentError.new("Storage type child not supported - #{type}")
      end
      self
    end
def add_child_type(type)
      case type
        when CaTissue::StorageType then add_storage_type(type)
        when CaTissue::SpecimenArrayType then add_specimen_array_type(type)
        when String then add_specimen_class(type)
        else raise ArgumentError.new("Storage type child not supported - #{type}")
      end
      self
    end
Adds the given subtype to the list of subtypes which this StorageType can hold.

 @param [CaTissue::StorageType, CaTissue::SpecimenArrayType, String] the subcontainer type or
   {CaTissue::AbstractSpecimen#specimen_class} which this StorageType can hold
 @return [StorageTypeHolder] self
 @raise [ArgumentError] if the type to add is not a supported parameter