Sha256: 947d72063edc3cd65ad8f2d4ee811e9658bb9f3195cdfd4f5cf3aa218c1442ad

Contents?: true

Size: 466 Bytes

Versions: 23

Compression:

Stored size: 466 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node
      # Mutator for nth-ref nodes
      class NthRef < self

        handle :nth_ref

        children :number

      private

        # Perform dispatch
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_number(number - 1)
          emit_number(number + 1)
        end

      end # NthRef
    end # Node
  end # Mutator
end # Mutant

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mutant-0.5.10 lib/mutant/mutator/node/nthref.rb
mutant-0.5.9 lib/mutant/mutator/node/nthref.rb
mutant-0.5.8 lib/mutant/mutator/node/nthref.rb
mutant-0.5.7 lib/mutant/mutator/node/nthref.rb
mutant-0.5.6 lib/mutant/mutator/node/nthref.rb
mutant-0.5.5 lib/mutant/mutator/node/nthref.rb
mutant-0.5.4 lib/mutant/mutator/node/nthref.rb
mutant-0.5.3 lib/mutant/mutator/node/nthref.rb
mutant-0.5.2 lib/mutant/mutator/node/nthref.rb
mutant-0.5.1 lib/mutant/mutator/node/nthref.rb
mutant-0.5.0 lib/mutant/mutator/node/nthref.rb
mutant-0.3.6 lib/mutant/mutator/node/nthref.rb
mutant-0.3.5 lib/mutant/mutator/node/nthref.rb
mutant-0.3.4 lib/mutant/mutator/node/nthref.rb
mutant-0.3.3 lib/mutant/mutator/node/nthref.rb
mutant-0.3.2 lib/mutant/mutator/node/nthref.rb
mutant-0.3.1 lib/mutant/mutator/node/nthref.rb
mutant-0.3.0 lib/mutant/mutator/node/nthref.rb
mutant-0.3.0.rc5 lib/mutant/mutator/node/nthref.rb
mutant-0.3.0.rc4 lib/mutant/mutator/node/nthref.rb