Sha256: 77ea075674287923bc5987224d5f24fb19ad11109d4ac5dadff4dd206bacc223

Contents?: true

Size: 492 Bytes

Versions: 7

Compression:

Stored size: 492 Bytes

Contents

module Mutant
  class Mutator
    class Node
      # Namespace for define mutations
      class Defined < self

        handle(:defined?)

        children :expression

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        def dispatch
          emit_singletons
          emit(N_TRUE)

          emit_expression_mutations { |node| !n_self?(node) }
        end

      end # Defined
    end # Node
  end # Mutator
end # Mutant

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.8.8 lib/mutant/mutator/node/defined.rb
mutant-0.8.7 lib/mutant/mutator/node/defined.rb
mutant-0.8.6 lib/mutant/mutator/node/defined.rb
mutant-0.8.5 lib/mutant/mutator/node/defined.rb
mutant-0.8.4 lib/mutant/mutator/node/defined.rb
mutant-0.8.3 lib/mutant/mutator/node/defined.rb
mutant-0.8.2 lib/mutant/mutator/node/defined.rb