---
title: Use CamelCase for classes and modules
impact: MEDIUM
impactDescription: Follow Ruby community naming conventions for classes and modules.
tags: ruby, naming, CamelCase, architecture
---

## Use CamelCase for classes and modules

Use `CamelCase` (also known as PascalCase) for class and module names. Keep acronyms uppercase (e.g., `HTTPClient`, `XMLParser`).

**Incorrect:**

```ruby
class User_profile
end

module Api_Helper
end

class HttpClient # Acronym 'HTTP' should be all caps
end
```

**Correct:**

```ruby
class UserProfile
end

module ApiHelper
end

class HTTPClient
end
```

**Tools:** RuboCop (`Naming/ClassName`)
