lib/mdl/doc.rb
##
# Returns line numbers for lines that match the given regular expression
Returns line numbers for lines that match the given regular expression
Returns line numbers for lines that match the given regular expression
def matching_lines(regex)
      @lines.each_with_index.select { |text, _linenum| regex.match(text) }
            .map do |i|
              i[1] + 1
            end
    end
def matching_lines ( regex ) @lines . each_with_index . select { | text , _linenum | regex . match ( text ) } . map do | i | i [ 1 ] + 1 end end
Returns line numbers for lines that match the given regular expression
Returns line numbers for lines that match the given regular expression
regex
<not_specific>