class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody
This cops checks if empty lines around the bodies of blocks match the configuration.
@example
# EnforcedStyle: empty_lines # good foo do |bar| ... end # EnforcedStyle: no_empty_lines # good foo do |bar| ... end
Constants
- KIND
Public Instance Methods
on_block(node)
click to toggle source
# File lib/rubocop/cop/layout/empty_lines_around_block_body.rb, line 33 def on_block(node) check(node, node.body) end