Class: Simmer::Specification::Stage

Inherits:
Object
  • Object
show all
Defined in:
lib/simmer/specification/stage.rb,
lib/simmer/specification/stage/input_file.rb

Overview

Describes the state necessary to exist before Spoon can be executed successfully.

Defined Under Namespace

Classes: InputFile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files: [], fixtures: []) ⇒ Stage

Returns a new instance of Stage.



20
21
22
23
24
25
# File 'lib/simmer/specification/stage.rb', line 20

def initialize(files: [], fixtures: [])
  @files    = InputFile.array(files)
  @fixtures = Array(fixtures).map(&:to_s)

  freeze
end

Instance Attribute Details

#filesObject (readonly)

Returns the value of attribute files.



18
19
20
# File 'lib/simmer/specification/stage.rb', line 18

def files
  @files
end

#fixturesObject (readonly)

Returns the value of attribute fixtures.



18
19
20
# File 'lib/simmer/specification/stage.rb', line 18

def fixtures
  @fixtures
end