Module: Crystalball::MapGenerator::BaseStrategy

Overview

Map generator strategy interface

Instance Method Summary collapse

Instance Method Details

#after_registerObject



7
# File 'lib/crystalball/map_generator/base_strategy.rb', line 7

def after_register; end

#after_startObject



9
# File 'lib/crystalball/map_generator/base_strategy.rb', line 9

def after_start; end

#before_finalizeObject



11
# File 'lib/crystalball/map_generator/base_strategy.rb', line 11

def before_finalize; end

#call(_example_map, _example) ⇒ Object

Each strategy must implement #call augmenting the used_files list and yielding back the ExampleGroupMap.

Parameters:

  • _example_map (Crystalball::ExampleGroupMap)
    • object holding example metadata and used files

  • _example (RSpec::Core::Example)
    • a RSpec example

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/crystalball/map_generator/base_strategy.rb', line 17

def call(_example_map, _example)
  raise NotImplementedError
end