Sha256: ed26d764b2f66ec4c4e0df00483def06f01f13ea5ed744dc00665034bbdfd81f

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

module Mutest
  class Mutator
    class Node
      class Literal < self
        # Mutator for symbol literals
        class Symbol < self
          handle(:sym)

          children :value

          PREFIX = '__mutest__'.freeze

          private

          # Emit mutations
          #
          # @return [undefined]
          def dispatch
            emit_singletons
            mutate_with(Util::Symbol, value, &method(:emit_type))
          end
        end # Symbol
      end # Literal
    end # Node
  end # Mutator
end # Mutest

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutest-0.0.6 lib/mutest/mutator/node/literal/symbol.rb
mutest-0.0.5 lib/mutest/mutator/node/literal/symbol.rb
mutest-0.0.4 lib/mutest/mutator/node/literal/symbol.rb
mutest-0.0.3 lib/mutest/mutator/node/literal/symbol.rb
mutest-0.0.2 lib/mutest/mutator/node/literal/symbol.rb