Use word operator for control flow

This commit is contained in:
Markus Schirp 2013-04-20 20:55:37 +02:00
parent 528cfd7654
commit af9dfc5a16

View file

@ -101,7 +101,7 @@ module Mutant
# @api private
#
def strategy
@strategy || raise(Error, 'No strategy was set!')
@strategy or raise(Error, 'No strategy was set!')
@strategy.new(self)
end
memoize :strategy