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



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

def on_def(node)
  check(node)
end

#on_defs(node) ⇒ Object



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

def on_defs(node)
  check(node)
end