Class: CaTissue::SpecimenArray

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

Instance Method Summary collapse

Instance Method Details

#add(storable, coordinate = nil, attribute = nil) ⇒ Object Also known as: <<

Raises NotImplementedError since caTissue SpecimenArray is broken in important ways described below.

Raises:

  • (NotImplementedError)


37
38
39
# File 'lib/catissue/domain/specimen_array.rb', line 37

def add(storable, coordinate=nil, attribute=nil)
  raise NotImplementedError.new("Adding specimens to a SpecimenArray is not yet supported")
end

#specimen_array_type=(type) ⇒ Object

Initializes this instance’s child storage types from the given type.

Parameters:



11
12
13
14
15
16
17
# File 'lib/catissue/domain/specimen_array.rb', line 11

def specimen_array_type=(type)
  setSpecimenArrayType(type)
  unless type.nil? then
    copy_container_type_capacity
  end
  type
end