Sha256: e2da0217735dcf8e3b7f51c2431b28302fb03420deae3a957b52b755f4041a78

Contents?: true

Size: 435 Bytes

Versions: 13

Compression:

Stored size: 435 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.6.6 lib/mutant/mutator/util/symbol.rb
mutant-0.6.5 lib/mutant/mutator/util/symbol.rb
mutant-0.6.4 lib/mutant/mutator/util/symbol.rb
mutant-0.6.3 lib/mutant/mutator/util/symbol.rb
mutant-0.6.2 lib/mutant/mutator/util/symbol.rb
mutant-0.6.0 lib/mutant/mutator/util/symbol.rb
mutant-0.5.26 lib/mutant/mutator/util/symbol.rb
mutant-0.5.25 lib/mutant/mutator/util/symbol.rb
mutant-0.5.24 lib/mutant/mutator/util/symbol.rb
mutant-0.5.23 lib/mutant/mutator/util/symbol.rb
mutant-0.5.22 lib/mutant/mutator/util/symbol.rb
mutant-0.5.21 lib/mutant/mutator/util/symbol.rb
mutant-0.5.20 lib/mutant/mutator/util/symbol.rb