Method: List::Matcher::Node#finalize

Defined in:
lib/list_matcher.rb

#finalize(rx) ⇒ Object



492
493
494
495
496
497
498
# File 'lib/list_matcher.rb', line 492

def finalize(rx)
  if optional?
    rx = wrap rx unless atomic?
    rx += qmark
  end
  rx
end