class RubbyCop::Cop::Layout::EmptyLinesAroundBeginBody

This cops checks if empty lines exist around the bodies of begin-end blocks.

@example

# good

begin
  ...
end

# bad

begin

  ...

end

Constants

KIND

Public Instance Methods

on_kwbegin(node) click to toggle source
# File lib/rubbycop/cop/layout/empty_lines_around_begin_body.rb, line 30
def on_kwbegin(node)
  check(node, nil)
end

Private Instance Methods

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