Sha256: c7c416b6d1c01eb5f253cc04705a0877d483b9351e43b7c215ee8ddd29b00a56

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

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 mutations
          #
          # @return [undefined]
          def dispatch
            emit_singletons
            Util::Symbol.call(value).each(&method(:emit_type))
          end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.15 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.14 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.13 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.12 lib/mutant/mutator/node/literal/symbol.rb
mutant-0.8.11 lib/mutant/mutator/node/literal/symbol.rb