We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb34f27 commit c94d7ccCopy full SHA for c94d7cc
ruby/file-naming.md
@@ -1,13 +1,15 @@
1
-# Ruby module Convention > File Naming
+# Ruby File Convention > File Naming
2
3
## snake_case
4
5
* Should be in lowercase.
6
-* If the name contains multiple words, an underscore (_) should separate it.E.g. expression_engine
7
-* The name should resonate with the class or methods inside the module
+* If the name contains multiple words, an underscore (_) should separate it.E.g. expression_engine.
+* Should match the name of the class or module it contains.
8
9
```ruby
10
-require './application_record'
+# This class is in the file named 'car.rb'
11
+
12
class Car
- ...
13
+ # ...
14
+end
15
```
0 commit comments