Class: RegexpExamples::OneTimeRepeater
- Inherits:
-
BaseRepeater
- Object
- BaseRepeater
- RegexpExamples::OneTimeRepeater
- Defined in:
- lib/regexp-examples/repeaters.rb
Instance Attribute Summary
Attributes inherited from BaseRepeater
#group, #max_repeats, #min_repeats
Instance Method Summary collapse
-
#initialize(group) ⇒ OneTimeRepeater
constructor
A new instance of OneTimeRepeater.
Methods inherited from BaseRepeater
Constructor Details
#initialize(group) ⇒ OneTimeRepeater
Returns a new instance of OneTimeRepeater.
32 33 34 35 36 |
# File 'lib/regexp-examples/repeaters.rb', line 32 def initialize(group) super @min_repeats = 1 @max_repeats = 1 end |