class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody
Checks if empty lines exist around the bodies of begin-end blocks.
@example
# bad begin # ... end # good begin # ... end
Constants
- KIND
Public Instance Methods
Source
# File lib/rubocop/cop/layout/empty_lines_around_begin_body.rb, line 29 def on_kwbegin(node) check(node, nil) end
Private Instance Methods
Source
# File lib/rubocop/cop/layout/empty_lines_around_begin_body.rb, line 35 def style :no_empty_lines end