Skip to content

Commit b75b0f2

Browse files
lovro-bikicbbatsov
authored andcommitted
Add section for empty lines after module inclusion
1 parent 647f144 commit b75b0f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,30 @@ some_method
566566
some_method
567567
----
568568

569+
=== Empty Lines after Module Inclusion [[empty-lines-after-module-inclusion]]
570+
571+
Use empty lines after module inclusion methods (`extend`, `include` and `prepend`).
572+
573+
[source,ruby]
574+
----
575+
# bad
576+
class Foo
577+
extend SomeModule
578+
include AnotherModule
579+
prepend YetAnotherModule
580+
def foo; end
581+
end
582+
583+
# good
584+
class Foo
585+
extend SomeModule
586+
include AnotherModule
587+
prepend YetAnotherModule
588+
589+
def foo; end
590+
end
591+
----
592+
569593
=== Empty Lines around Attribute Accessor [[empty-lines-around-attribute-accessor]]
570594

571595
Use empty lines around attribute accessor.

0 commit comments

Comments
 (0)