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