From 18cdc86e07cf05912a6e3304c5c942cc16fd261e Mon Sep 17 00:00:00 2001 From: Lovro Bikic Date: Sat, 29 Mar 2025 20:30:34 +0100 Subject: [PATCH] Add section for empty lines after module inclusion --- README.adoc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.adoc b/README.adoc index a0a6904b..60f57a40 100644 --- a/README.adoc +++ b/README.adoc @@ -564,6 +564,30 @@ some_method some_method ---- +=== Empty Lines after Module Inclusion [[empty-lines-after-module-inclusion]] + +Use empty lines after module inclusion methods (`extend`, `include` and `prepend`). + +[source,ruby] +---- +# bad +class Foo + extend SomeModule + include AnotherModule + prepend YetAnotherModule + def foo; end +end + +# good +class Foo + extend SomeModule + include AnotherModule + prepend YetAnotherModule + + def foo; end +end +---- + === Empty Lines around Attribute Accessor [[empty-lines-around-attribute-accessor]] Use empty lines around attribute accessor.