Class: RegexpExamples::QuestionMarkRepeater

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

Returns a new instance of QuestionMarkRepeater.



55
56
57
# File 'lib/regexp-examples/repeaters.rb', line 55

def initialize(group)
  super
end

Instance Method Details

#resultObject



59
60
61
# File 'lib/regexp-examples/repeaters.rb', line 59

def result
  super(0, 1)
end