Open
Description
Hi, is there any specific style that you guys follow for class and module naming style, either nested or compact??
In the rubystyle guide they prefer nested due to surprising constant lookups
Using the scope resolution operator can lead to surprising constant lookups due to Ruby’s lexical scoping
ref: https://rubystyle.guide/#namespace-definition
example of nested:
class Foo
class Bar
end
end
example of compact:
class Foo::Bar
end
Metadata
Metadata
Assignees
Labels
No labels