class PrismQA::DesignSpectrum

A DesignSpectrum defines an order on a set of images used to represent the design

Public Class Methods

new() click to toggle source
Calls superclass method Spectrum::new
# File gem/lib/prism_qa/spectrum.rb, line 37
def initialize
  super
  @order = []  # will hold the sorted indexes into the image set array
end

Public Instance Methods

allow_image_set(image_set) click to toggle source
# File gem/lib/prism_qa/spectrum.rb, line 42
def allow_image_set(image_set)
  raise ImplementationError, "Got a nil DesignImageSet object; was #{self.class.name} properly extended?" if image_set.nil?

  # Ensure that we are only looking at design images
  unless image_set.is_a? DesignImageSet
    raise IncompatibilityError, 'Tried to add a non- DesignImageSet object to DesignSpectrum'
  end
end