Class: RegexpExamples::StarRepeater

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

Instance Attribute Summary

Attributes inherited from BaseRepeater

#group

Instance Method Summary collapse

Constructor Details

#initialize(group) ⇒ StarRepeater

Returns a new instance of StarRepeater.



35
36
37
# File 'lib/regexp-examples/repeaters.rb', line 35

def initialize(group)
  super
end

Instance Method Details

#resultObject



39
40
41
# File 'lib/regexp-examples/repeaters.rb', line 39

def result
  super(0, RegexpExamples.MaxRepeaterVariance)
end