Sha256: 291d2e4c09eda7f50aec4b83db4b043c988c4a94b7ad2a67616ab84a7065d0a9

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

module Mutant
  class Mutator
    class Node
      module Regexp
        # Mutator for end of line or before end of string anchor `\Z`
        class EndOfStringOrBeforeEndOfLineAnchor < Node
          handle(:regexp_eos_ob_eol_anchor)

          # Emit mutations
          #
          # Replace `\Z` with `\z`
          #
          # @return [undefined]
          def dispatch
            emit(s(:regexp_eos_anchor))
          end
        end # EndOfStringOrBeforeEndOfLineAnchor
      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_string_or_before_end_of_line_anchor.rb
mutant-0.8.15 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.14 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.13 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb
mutant-0.8.12 lib/mutant/mutator/node/regexp/end_of_string_or_before_end_of_line_anchor.rb