Sha256: 8e289f6135e6df14066c9c4d45a99a533ad5db0d95e9904062a40f9729946ca5

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.15 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.14 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.13 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb
mutant-0.8.12 lib/mutant/mutator/node/regexp/end_of_line_anchor.rb