Arange code in a better way
This commit is contained in:
parent
e321d7a00d
commit
98116a63d9
1 changed files with 11 additions and 11 deletions
|
@ -31,17 +31,7 @@ module Mutant
|
|||
host.memoize :coverage
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Test if operation is failing
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def fail?
|
||||
!success?
|
||||
end
|
||||
end # Coverage
|
||||
|
||||
# Class level mixin
|
||||
module ClassMethods
|
||||
|
@ -64,6 +54,16 @@ module Mutant
|
|||
end
|
||||
memoize name
|
||||
end
|
||||
end # ClassMethods
|
||||
|
||||
# Test if operation is failing
|
||||
#
|
||||
# @return [Boolean]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def fail?
|
||||
!success?
|
||||
end
|
||||
|
||||
# Return overhead
|
||||
|
|
Loading…
Reference in a new issue