class SpaceshipMissionSimulator::ValidatePathConsistency
Public Instance Methods
call()
click to toggle source
# File lib/spaceship_mission_simulator/interactors/validate_path_consistency.rb, line 5 def call return true if context.path.fresh_event_consistent? msg = 'spaceship mission path should be consistent (launch -> land)' context.fail! message: msg end