Class: RuboCop::Erb::KeywordRemover::PrecedingSourceRemover
- Inherits:
-
Object
- Object
- RuboCop::Erb::KeywordRemover::PrecedingSourceRemover
- Defined in:
- lib/rubocop/erb/keyword_remover.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Hash
-
#initialize(code) ⇒ PrecedingSourceRemover
constructor
A new instance of PrecedingSourceRemover.
Constructor Details
#initialize(code) ⇒ PrecedingSourceRemover
Returns a new instance of PrecedingSourceRemover.
47 48 49 |
# File 'lib/rubocop/erb/keyword_remover.rb', line 47 def initialize(code) @code = code end |
Class Method Details
.call(code) ⇒ RubyClip
41 42 43 |
# File 'lib/rubocop/erb/keyword_remover.rb', line 41 def call(code) new(code).call end |