Sha256: f8c1a6f3278cc0ffba26404ca52c8182d88e70bf2638d0867c13b6194fd0f809
Contents?: true
Size: 795 Bytes
Versions: 17
Compression:
Stored size: 795 Bytes
Contents
module Mutant class Mutator # Namespace for utility mutators class Util < self # Run utility 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 [Boolean] # # @api private # def new?(generated) !input.eql?(generated) end end # Util end # Mutator end # Mutant
Version data entries
17 entries across 17 versions & 1 rubygems