fb8bb2ed24
* Useful for benchmarking
19 lines
301 B
Ruby
19 lines
301 B
Ruby
module Mutant
|
|
class Killer
|
|
class Static < self
|
|
def run
|
|
self.class::RESULT
|
|
end
|
|
|
|
class Success < self
|
|
TYPE = 'success'.freeze
|
|
RESULT = true
|
|
end
|
|
|
|
class Fail < self
|
|
TYPE = 'fail'.freeze
|
|
RESULT = false
|
|
end
|
|
end
|
|
end
|
|
end
|