Class: RegexpExamples::PlusRepeater

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) ⇒ PlusRepeater

Returns a new instance of PlusRepeater.



45
46
47
# File 'lib/regexp-examples/repeaters.rb', line 45

def initialize(group)
  super
end

Instance Method Details

#resultObject



49
50
51
# File 'lib/regexp-examples/repeaters.rb', line 49

def result
  super(1, RegexpExamples.MaxRepeaterVariance + 1)
end