Sha256: ce29372159da37c21816c954d9f8627c1dac9df3a9216509914ad979c1ea3f1a
Contents?: true
Size: 895 Bytes
Versions: 7
Compression:
Stored size: 895 Bytes
Contents
# encoding: UTF-8 module Mutant class Mutator class Node # Mutator for resbody nodes class Resbody < self handle(:resbody) children :captures, :assignment, :block private # Emit mutations # # @return [undefined] # # @api private # def dispatch emit_assignment(nil) emit_block_mutations if block mutate_captures end # Mutate captures # # @return [undefined] # # @api private # def mutate_captures return unless captures emit_captures(nil) Util::Array.each(captures.children, self) do |matchers| next if matchers.empty? emit_captures(s(:array, *matchers)) end end end # Resbody end # Node end # Mutator end # Mutant
Version data entries
7 entries across 7 versions & 1 rubygems