Method: Fitting::Prefix#initialize

Defined in:
lib/fitting/prefix.rb

#initialize(name, schema_paths, type, skip = false) ⇒ Prefix

Returns a new instance of Prefix.

Raises:



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/fitting/prefix.rb', line 15

def initialize(name, schema_paths, type, skip = false)
  @prefix = name
  @cover = false

  @actions = Fitting::Report::Actions.new([])
  raise Skip if skip

  schema_paths.each do |path|
    tomogram = Tomograph::Tomogram.new(prefix: name, KEYS[type] => path)

    @actions.push(Fitting::Report::Actions.new(tomogram))
  end
end