Class: RegexpExamples::QuestionMarkRepeater
- Inherits:
-
BaseRepeater
- Object
- BaseRepeater
- RegexpExamples::QuestionMarkRepeater
- Defined in:
- lib/regexp-examples/repeaters.rb
Instance Attribute Summary
Attributes inherited from BaseRepeater
Instance Method Summary collapse
-
#initialize(group) ⇒ QuestionMarkRepeater
constructor
A new instance of QuestionMarkRepeater.
- #result ⇒ Object
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
#result ⇒ Object
59 60 61 |
# File 'lib/regexp-examples/repeaters.rb', line 59 def result super(0, 1) end |