Ruby File Convention > File Naming

snake_case

  • Should be in lowercase.
  • 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.
# This class is in the file named 'car.rb'

class Car
  # ...
end