Sha256: b196a8b4bf10c9311c3dfce44d8f9efe8fdc2e9f983b3fa6ff77264f7367ce94

Contents?: true

Size: 512 Bytes

Versions: 17

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node

      # OpAsgn mutator
      class OpAsgn < self

        handle(:op_asgn)

        children :left, :operation, :right

      private

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

      end # OpAsgn
    end # Node
  end # Mutator
end # Mutant

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mutant-0.9.8 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.7 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.6 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.5 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.4 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.3 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.2 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.1 lib/mutant/mutator/node/op_asgn.rb
mutant-0.9.0 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.24 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.23 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.22 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.21 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.20 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.19 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.18 lib/mutant/mutator/node/op_asgn.rb
mutant-0.8.17 lib/mutant/mutator/node/op_asgn.rb