lib/ruumba/analyzer.rb
# The regular expression to capture interpolated Ruby.
The regular expression to capture interpolated Ruby.
The regular expression to capture interpolated Ruby .
def handled_region_before(match_start, prev_end_index,
                              file_text, extracted_ruby)
      return unless match_start > prev_end_index
      region_before = file_text[prev_end_index..match_start - 1]
      extracted_ruby << region_before.gsub(/./, ' ')
      extracted_ruby[prev_end_index] = ';' if needs_stmt_delimiter?(prev_end_index, region_before)
    end
def handled_region_before ( match_start , prev_end_index , file_text , extracted_ruby ) return unless match_start > prev_end_index region_before = file_text [ prev_end_index .. match_start - 1 ] extracted_ruby << region_before . gsub ( / . / , ' ' ) extracted_ruby [ prev_end_index ] = ';' if needs_stmt_delimiter? ( prev_end_index , region_before ) end
The regular expression to capture interpolated Ruby.
The regular expression to capture interpolated Ruby .
# if the last match was on the same line, we need to use a semicolon to # separate statements
match_start
<not_specific>
prev_end_index
<not_specific>
file_text
<not_specific>
extracted_ruby
<not_specific>