Use long operator form in non boolean context

This commit is contained in:
Markus Schirp 2013-04-20 14:52:43 +02:00
parent 5a7cc0b965
commit e90f3c86aa

View file

@ -38,7 +38,7 @@ module Mutant
def method
scope_matcher.methods.detect do |method|
method.name == method_name
end || raise("Cannot find #{method_name} for #{scope}")
end or raise("Cannot find #{method_name} for #{scope}")
end
memoize :method, :freezer => :noop