A
A
Arkady Dopokin2016-06-06 19:32:44
ruby
Arkady Dopokin, 2016-06-06 19:32:44

Should the class file name start with a capital letter?

Good day. For example in Java the class file name must start with a capital letter, does this rule apply to Ruby?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2016-06-06
@fpd24

Must!
Ruby style guide in English and the same in Russian
And in general, you could try to create a class with a small letter and see an error :)
UPD: if not a ror project, then the file names can be anything, not even the same as the class names
In general, it is desirable https://github.com/arbox/ruby-style-guide/blob/mas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question