Sha256: cb4b84931040dcd1f7ad6146cba89624dff22630d10f1e074ada9a3bf231b2b9

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Mutator
    class Node
      module Regexp
        # Mutator for end of line anchor `$`
        class EndOfLineAnchor < Node
          handle(:regexp_eol_anchor)

          # Emit mutations
          #
          # Replace `$` with `\z`
          #
          # @return [undefined]
          def dispatch
            emit(s(:regexp_eos_anchor))
          end
        end # EndOfLineAnchor
      end # Regexp
    end # Node
  end # Mutator
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.24 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.23 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.22 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.21 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.20 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.19 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.18 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.17 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb