class Arugula::NotPart

Public Instance Methods

match(str, index, match_data) click to toggle source
# File lib/arugula/parts.rb, line 202
def match(str, index, match_data)
  matches, end_index = wrapped.match(str, index, match_data)
  [!matches, matches ? index : end_index + 1]
end
to_s() click to toggle source
# File lib/arugula/parts.rb, line 198
def to_s
  @wrapped.to_s.dup.insert(1, '^')
end