Class: RuboCop::Erb::KeywordRemover::PrecedingKeywordRemover

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

Overview

Remove preceding keyword.

Constant Summary collapse

REGEXP =
/
  \A
  \s*
  (?:
    begin
    | case
    | else
    | elsif
    | end
    | ensure
    | if
    | rescue
    | unless
    | until
    | when
    | while
    | for[ \t]+\w+[ \t]+in
  )
  \b[ \t]*
/x.freeze

Method Summary

Methods inherited from PrecedingSourceRemover

call, #call, #initialize

Constructor Details

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