class RubbyCop::Cop::Layout::EmptyLinesAroundModuleBody
This cops checks if empty lines around the bodies of modules match the configuration.
@example
EnforcedStyle: empty_lines # good module Foo def bar ... end end EnforcedStyle: no_empty_lines # good module Foo def bar ... end end
Constants
- KIND
Public Instance Methods
on_module(node)
click to toggle source
# File lib/rubbycop/cop/layout/empty_lines_around_module_body.rb, line 37 def on_module(node) _name, body = *node check(node, body) end