Class: RegexpExamples::StarRepeater

Inherits:
BaseRepeater show all
Defined in:
lib/regexp-examples/repeaters.rb

Instance Attribute Summary

Attributes inherited from BaseRepeater

#group, #max_repeats, #min_repeats

Instance Method Summary collapse

Methods inherited from BaseRepeater

#random_result, #result

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