Sha256: 27423551fdefee16ff384d57c7b3228efb80748ae7fa24fb1fe006576f5fac48

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

module Mutant
  class Mutator
    class Node

      # OpAsgn mutator
      class OrAsgn < self

        handle(:or_asgn)

        children :left, :right

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_singletons
          emit_right_mutations
          return if n_ivasgn?(left)
          emit_left_mutations do |node|
            !n_self?(node)
          end
        end

      end # OrAsgn
    end # Node
  end # Mutator
end # Mutant

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.5.23 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.22 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.21 lib/mutant/mutator/node/or_asgn.rb
mutant-0.5.20 lib/mutant/mutator/node/or_asgn.rb