Sha256: ce8fb36dfb53866f313623be82e165e81a0cc597d290265df6fb41858b499b7e

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node
      class Literal < self
        # Mutator for symbol literals
        class Symbol < self

          handle(:sym)

          children :value

          PREFIX = '__mutant__'.freeze

        private

          # Emit mutatns
          #
          # @return [undefined]
          #
          # @api private
          #
          def dispatch
            emit_nil
            Mutator::Util::Symbol.each(value, self) do |value|
              emit_self(value)
            end
          end

        end # Symbol
      end # Literal
    end # Node
  end # Mutator
end # Mutant

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.5.17 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.16 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.15 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.14 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.13 lib/mutant/mutator/node/literal/symbol.rb