Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 808 Bytes

Style-ClassAndModuleChildren.md

File metadata and controls

31 lines (21 loc) · 808 Bytes

Pattern: Inconsistent child definition at class/module

Issue: -

Description

This rule checks the style of children definitions at classes and modules. There are two different styles:

nested - have each child on its own line class Foo class Bar end end

compact - combine definitions as much as possible class Foo::Bar end

The compact style is only forced for classes/modules with one child.

Default configuration

Attribute Value
EnforcedStyle nested
SupportedStyles nested, compact

Further Reading