Class: RegexpExamples::OneTimeRepeater

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

Returns a new instance of OneTimeRepeater.



25
26
27
# File 'lib/regexp-examples/repeaters.rb', line 25

def initialize(group)
  super
end

Instance Method Details

#resultObject



29
30
31
# File 'lib/regexp-examples/repeaters.rb', line 29

def result
  super(1, 1)
end