Class: RuboCop::Erb::KeywordRemover::TrailingDoRemover

Inherits:
TrailingSourceRemover show all
Defined in:
lib/rubocop/erb/keyword_remover.rb

Overview

Remove trailing ‘do`.

Constant Summary collapse

REGEXP =
/
  (?:\b[ \t]*|[ \t])
  do
  [ \t]*
  (?:\|[^|]*\|)?
  \s*
  (\#.*)?
  \z
/x.freeze

Method Summary

Methods inherited from TrailingSourceRemover

call, #call, #initialize

Constructor Details

This class inherits a constructor from RuboCop::Erb::KeywordRemover::TrailingSourceRemover