Sha256: c985640648848f592448988a7d571aaf9c25c726b148deef58afc213393bfc0a
Contents?: true
Size: 867 Bytes
Versions: 21
Compression:
Stored size: 867 Bytes
Contents
module Mutant class Mutator # Namespace for utility mutators class Util < self # Run ulitity mutator # # @param [Object] object # @param [Object] parent # # @return [Enumerator<Object>] # if no block given # # @return [self] # otherwise # # @api private # def self.each(object, parent, &block) return to_enum(__method__, object, parent) unless block_given? new(object, parent, block) self end private # Test if mutation is new # # @param [Object] generated # # @return [true] # if object is new # # @return [false] # otherwise # # @api private # def new?(generated) input != generated end end # Util end # Mutator end # Mutant
Version data entries
21 entries across 21 versions & 1 rubygems