Sha256: 519ced7f411aa6f28e36d6998697ab787714013164ada563b2a5b332ff386875
Contents?: true
Size: 614 Bytes
Versions: 8
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true module Mutant class Mutator class Node # Namespace for class mutations class Class < self handle :class children :klass, :parent, :body private # Emit mutations only for class body # # @return [undefined] def dispatch mutate_type emit_body_mutations if body end # Emit class -> type mutations # # @return [undefined] def mutate_type emit(s(:module, klass, body)) end end # Class end # Node end # Mutator end # Mutant
Version data entries
8 entries across 8 versions & 1 rubygems