class Spectrum

A Spectrum in Prism defines a set of images that can be loaded on demand It is not exposed in the PrismQA module

Attributes

image_set[R]

Public Class Methods

new() click to toggle source
# File gem/lib/prism_qa/spectrum.rb, line 8
def initialize
  @image_set = nil  # the image set for this spectrum
end

Public Instance Methods

allow_image_set(_image_set) click to toggle source

implementation-specific: verify that an ImageSet is appropriate

# File gem/lib/prism_qa/spectrum.rb, line 24
def allow_image_set(_image_set)
  puts "  +++ If you're seeing this, #{self.class.name}.#{__method__} was not overridden"
end
fetch_image_set() click to toggle source

implementation-specific: return a filled ImageSet

# File gem/lib/prism_qa/spectrum.rb, line 19
def fetch_image_set
  puts "  +++ If you're seeing this, #{self.class.name}.#{__method__} was not overridden"
end
load() click to toggle source
# File gem/lib/prism_qa/spectrum.rb, line 12
def load
  image_set = fetch_image_set
  allow_image_set image_set
  @image_set = image_set
end