class RuboCop::Cop::Style::EmptyLinesAroundClassBody
This cops checks if empty lines around the bodies of classes match the configuration.
@example
class Test def something ... end end
Constants
- KIND
Public Instance Methods
on_class(node)
click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_class_body.rb, line 24 def on_class(node) _name, _superclass, body = *node check(node, body) end
on_sclass(node)
click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_class_body.rb, line 29 def on_sclass(node) _obj, body = *node check(node, body) end