class RegexpExamples::OneTimeRepeater
When there is “no repeater”, we interpret this as a “one time repeater”. For example, ‘/a/` is a “OneTimeRepeater” of “a” Equivalent to `/a{1}/`
Public Class Methods
new(group)
click to toggle source
Calls superclass method
RegexpExamples::BaseRepeater::new
# File lib/regexp-examples/repeaters.rb, line 41 def initialize(group) super @min_repeats = 1 @max_repeats = 1 end