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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#on_def(node) ⇒ Object



14
15
16
# File 'lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb', line 14

def on_def(node)
  check(node)
end

#on_defs(node) ⇒ Object



18
19
20
# File 'lib/rubocop/cop/elegant/no_empty_lines_in_methods.rb', line 18

def on_defs(node)
  check(node)
end