Sha256: 15386a8da1ac11f1aaa59ec1d888dd5b8f7fc09e4029ba3be15e1d5eef96cd15
Contents?: true
Size: 886 Bytes
Versions: 33
Compression:
Stored size: 886 Bytes
Contents
# encoding: utf-8 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
33 entries across 33 versions & 1 rubygems