Class: RuboCop::Cop::Elegant::NoEmptyLinesInMethods

Inherits:
Base
  • Object
show all
Extended by:
AutoCorrector
Defined in:
lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb

Overview

SPDX-FileCopyrightText: Copyright © 2019-2026 Yegor Bugayenko SPDX-License-Identifier: MIT

Constant Summary collapse

MSG =
'Empty line inside method body is not allowed'

Instance Method Summary collapse

Instance Method Details

#on_def(node) ⇒ Object



12
13
14
# File 'lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb', line 12

def on_def(node)
  check(node)
end

#on_defs(node) ⇒ Object



16
17
18
# File 'lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb', line 16

def on_defs(node)
  check(node)
end