Sha256: a226b5cdbc170a7d73b418ff917ef0244296734d9bf288ac2541007ce9a5b51d

Contents?: true

Size: 454 Bytes

Versions: 7

Compression:

Stored size: 454 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Util

      # Utility symbol mutator
      class Symbol < self

        handle(::Symbol)

        POSTFIX = '__mutant__'.freeze

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit((input.to_s + POSTFIX).to_sym)
        end

      end # Symbol
    end # Util
  end # Mutator
end # Mutant

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.5.19 lib/mutant/mutator/util/symbol.rb
mutant-0.5.18 lib/mutant/mutator/util/symbol.rb
mutant-0.5.17 lib/mutant/mutator/util/symbol.rb
mutant-0.5.16 lib/mutant/mutator/util/symbol.rb
mutant-0.5.15 lib/mutant/mutator/util/symbol.rb
mutant-0.5.14 lib/mutant/mutator/util/symbol.rb
mutant-0.5.13 lib/mutant/mutator/util/symbol.rb