class RegexpExamples::MaxResultsLimiterByProduct
For example: Needed when generating examples for /[ab]{10}/ (here, results_count will reach 2**10 == 1024)
Public Class Methods
new()
click to toggle source
Calls superclass method
RegexpExamples::MaxResultsLimiter::new
# File lib/regexp-examples/max_results_limiter.rb, line 39 def initialize super(1) end
Public Instance Methods
limit_results(partial_results)
click to toggle source
Calls superclass method
RegexpExamples::MaxResultsLimiter#limit_results
# File lib/regexp-examples/max_results_limiter.rb, line 43 def limit_results(partial_results) super(partial_results, :/, :*) end