Sha256: 71f1b0156023959a067c983d670bd96708a0816fee1158513d0dbabed6bcce25
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module Mutant class Mutator class Util # Mutators that mutates symbol inputs class Symbol < self handle(::Symbol) private # Emit mutations # # @return [undefined] # # @api private # def dispatch emit_new { :"s#{Random.hex_string}" } unless ignore? end # Test if symbol is ignored # # @return [true] # if symbol begins with an underscore # # @return [false] # otherwise # # @pai private # def ignore? input.to_s[0] == '_' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems