class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody
This cop checks if empty lines exist around the bodies of begin-end blocks.
@example
# good begin # ... end # bad begin # ... end
Constants
- KIND
Public Instance Methods
autocorrect(node)
click to toggle source
# File lib/rubocop/cop/layout/empty_lines_around_begin_body.rb, line 33 def autocorrect(node) EmptyLineCorrector.correct(node) end
on_kwbegin(node)
click to toggle 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
style()
click to toggle source
# File lib/rubocop/cop/layout/empty_lines_around_begin_body.rb, line 39 def style :no_empty_lines end