| name | ruby-style |
|---|---|
| description | Use when editing Ruby in this repo—module layout, require paths, and staying consistent with existing style (not introducing a new linter config). |
- Adding new
.rbfiles underlib/orspec/ - Refactoring while keeping diffs readable for reviewers
- Deciding where a new helper or model class should live
- Library code:
lib/contentstack_utils/with nested foldersmodel/,interface/,support/ - Top-level require:
lib/contentstack_utils.rbshould stay a thin loader - Specs: mirror behavior under
spec/lib/andspec/mock//spec/support/as in existing examples
ContentstackUtilsas the root module; nestedModel,Interface,GQLas already usedrequire_relativefor internal lib files (seeutils.rb,options.rb)- Existing files use a mix of spacing and
def self.patterns; prefer matching the surrounding file over wholesale reformatting - Typo in base class name
Rendarableis historical; new code should remain compatible unless a dedicated rename is approved project-wide
- There is no RuboCop or Standard configuration in this repository; do not add large style-only churn unless the team adopts a formatter
- Run
bundle exec rake specbefore pushing substantive changes
- YARD can document public APIs; keep user-facing usage examples in
README.mdaccurate (e.g. class nameOptionsvs informal “Option” in prose)