Sha256: e6216d112b9005315722a9280914e93abca95cb849de5152bac5fef9e3a5b1cf
Contents?: true
Size: 842 Bytes
Versions: 5
Compression:
Stored size: 842 Bytes
Contents
module Mutant class Mutator class Node module Regexp # Mutator for root expression regexp wrapper class RootExpression < Node handle(:regexp_root_expression) # Emit mutations for children of root node # # @return [undefined] def dispatch children.each_index(&method(:mutate_child)) end end # RootExpression # Mutator for beginning of line anchor `^` class BeginningOfLineAnchor < Node handle(:regexp_bol_anchor) # Emit mutations # # Replace `^` with `\A` # # @return [undefined] def dispatch emit(s(:regexp_bos_anchor)) end end # BeginningOfLineAnchor end # Regexp end # Node end # Mutator end # Mutant
Version data entries
5 entries across 5 versions & 1 rubygems