Class: Rrrex::NotMatch

Inherits:
Match
  • Object
show all
Includes:
SingleAtomMatch
Defined in:
lib/rrrex/not_match.rb

Instance Attribute Summary

Attributes included from SingleAtomMatch

#atom

Instance Method Summary collapse

Methods included from SingleAtomMatch

#group_names, #initialize

Methods inherited from Match

#+, convert, #group_names, #match, #not, #or, #wrap

Instance Method Details

#to_regexp_stringObject



6
7
8
# File 'lib/rrrex/not_match.rb', line 6

def to_regexp_string
  "(?!#{atom.to_regexp_string})"
end