Class: RegexpExamples::StarRepeater
- Inherits:
-
BaseRepeater
- Object
- BaseRepeater
- RegexpExamples::StarRepeater
- 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) ⇒ StarRepeater
constructor
A new instance of StarRepeater.
Methods inherited from BaseRepeater
Constructor Details
#initialize(group) ⇒ StarRepeater
Returns a new instance of StarRepeater.
40 41 42 43 44 |
# File 'lib/regexp-examples/repeaters.rb', line 40 def initialize(group) super @min_repeats = 0 @max_repeats = RegexpExamples.MaxRepeaterVariance end |