class RegexpExamples::QuestionMarkRepeater

When a question mark is used, e.g. ‘/a?/` Equivalent to `/a{0,1}/`

Public Class Methods

new(group) click to toggle source
Calls superclass method RegexpExamples::BaseRepeater::new
# File lib/regexp-examples/repeaters.rb, line 71
def initialize(group)
  super
  @min_repeats = 0
  @max_repeats = 1
end