RuleMembers
Ruby Best Practices
Ruby Best Practices is a rule file for Cursor, from the Cursor rules (mdc) collection by sanjeed5. The full text is about 1,134 words in 33 sections, with 48 code blocks. A rule file tells the editor's AI how code in this stack should be written, so its suggestions follow the same conventions.
It is most useful for people working in IT and security and Security who use Cursor.
What it covers
- 1. Code Organization & Structure
- 1.1 Single Class/Module Per File
- 1.2 Rails Directory Structure
- 1.3 Configuration Files
- 2. Formatting
- 2.1 Indentation & Line Length
- 2.2 Trailing Whitespace & Newlines
- 3. Naming Conventions
- 3.1 Variables, Methods, Files
- 3.2 Classes & Modules
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source: https://github.com/sanjeed5/awesome-cursor-rules-mdc/blob/main/rules-mdc/ruby.mdc
Author: sanjeed5, Cursor rules (mdc). License: CC0-1.0.