ruby
Ruby Best Practices
Core Ruby language guide organized as modular rules, independent of any web framework. Covers syntax and types, collections, blocks/procs/lambdas, OOP/modules, metaprogramming, dependency management, testing, style/typing tooling, and performance/debugging.
For Rails-specific concerns (Active Record, controllers, views, jobs, Kamal deployment, etc.), load the sibling ruby-on-rails skill instead.
ROUTING: Which rule file to load
IF working with variables, strings/symbols, numerics, control flow, or pattern matching (case/in):
→ Read rules/core-syntax-and-types.md
IF working with Array, Hash, Struct, Enumerable, or lazy enumerators:
→ Read rules/core-collections-enumerable.md
IF working with blocks, yield, Proc, or lambda:
→ Read rules/core-blocks-procs-lambdas.md
IF working with classes, modules, mixins, or inheritance:
→ Read rules/core-oop-modules.md