Class: RuboCop::Erb::KeywordRemover::PrecedingKeywordRemover
- Inherits:
-
PrecedingSourceRemover
- Object
- PrecedingSourceRemover
- RuboCop::Erb::KeywordRemover::PrecedingKeywordRemover
- 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
Constructor Details
This class inherits a constructor from RuboCop::Erb::KeywordRemover::PrecedingSourceRemover