class RubbyCop::Cop::Layout::EmptyLinesAroundMethodBody

This cops checks if empty lines exist around the bodies of methods.

@example

# good

def foo
  ...
end

# bad

def bar

  ...

end

Constants

KIND

Public Instance Methods

on_method_def(node, _method_name, _args, body) click to toggle source
# File lib/rubbycop/cop/layout/empty_lines_around_method_body.rb, line 29
def on_method_def(node, _method_name, _args, body)
  check(node, body)
end

Private Instance Methods

style() click to toggle source
# File lib/rubbycop/cop/layout/empty_lines_around_method_body.rb, line 35
def style
  :no_empty_lines
end