Womply Ruby Style Guide
This appears to have been a Ruby style guide maintained by the engineering team at Womply, a company that built software for small businesses. Judging by its section names, it covered syntax, exceptions, percent literals, metaprogramming, naming and collections, in the spirit of the widely shared community Ruby style guides.
Its original feature documentation is no longer published, and the pages below are independent guides to the topics it covered.
Guides
- Ruby Syntax Style: Practical Conventions for Readable Code
Practical Ruby syntax conventions: indentation, parentheses, blocks, conditionals and spacing, with examples of what reads well in review.
- Ruby Exception Handling Style: Raise, Rescue and Custom Errors
Guidance on Ruby exceptions: what to rescue, when to raise, custom error classes, ensure, retry and keeping failures visible.
- Ruby Percent Literals: When to Use %w, %i, %q and Friends
A style guide to Ruby percent literals: %w and %i arrays, %q and %Q strings, %r regexps, delimiter choice and when plain literals are better.
- Ruby Metaprogramming Style: Using define_method and method_missing Responsibly
Style rules for Ruby metaprogramming: prefer define_method over eval, pair method_missing with respond_to_missing?, and keep magic discoverable.
- Ruby Naming Conventions: Methods, Classes, Predicates and Constants
Ruby naming conventions explained: snake_case methods, CamelCase classes, predicate and bang methods, constants and names that read well.
- Ruby Collections Style: Arrays, Hashes and Enumerable Idioms
Style guidance for Ruby collections: literal syntax, fetch versus brackets, choosing the right Enumerable method and avoiding mutation surprises.