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