Sha256: dadfc25018648b64b494f07740c10e6c95651c8bc65028dbecf68b709e779fef

Contents?: true

Size: 556 Bytes

Versions: 26

Compression:

Stored size: 556 Bytes

Contents

# encoding: utf-8

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

          handle(:sym)

          PREFIX = 's'

        private

          # Emit mutatns
          #
          # @return [undefined]
          #
          # @api private
          #
          def dispatch
            emit_nil
            emit_new { new_self((PREFIX + Random.hex_string).to_sym) }
          end

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mutant-0.3.0.rc5 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0.rc4 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0.rc3 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0.rc2 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0.rc1 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0.beta22 lib/mutant/mutator/node/literal/symbol.rb