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.5.12 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.11 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.10 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.9 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.8 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.7 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.6 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.5 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.4 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.3 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.2 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.1 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.5.0 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.6 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.5 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.4 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.3 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.2 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.1 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.3.0 lib/mutant/mutator/node/literal/symbol.rb