Method: Regexp::MatchLength#endless_each
- Defined in:
- lib/regexp_parser/expression/methods/match_length.rb
#endless_each ⇒ Object
35 36 37 38 |
# File 'lib/regexp_parser/expression/methods/match_length.rb', line 35 def endless_each return enum_for(__method__) unless block_given? (min..max).each { |num| yield(num) if include?(num) } end |