Sha256: 2ea5247cdaaa7fd8b076355f888624ae60f9c24a5dca977729663b178dc201cb

Contents?: true

Size: 477 Bytes

Versions: 15

Compression:

Stored size: 477 Bytes

Contents

# Style guide

## Instance variables and getters / setters

We use instance vars only:

- in the constructor
- for [memoization](http://gavinmiller.io/2013/basics-of-ruby-memoization/)

For everything else we use proper getters / setters.

If possible those should be private. We use the [private_attr](https://github.com/jswanner/private_attr) for this, e.g.:

```Ruby
private_attr_reader :configuration
private_attr_writer :failure_message
private_attr_accessor :examiner
```

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
reek-3.10.1 docs/style-guide.md
reek-3.10.0 docs/style-guide.md
reek-3.9.1 docs/style-guide.md
reek-3.9.0 docs/style-guide.md
reek-3.8.3 docs/style-guide.md
reek-3.8.2 docs/style-guide.md
reek-3.8.1 docs/style-guide.md
reek-3.8.0 docs/style-guide.md
reek-3.7.1 docs/style-guide.md
reek-3.7.0 docs/style-guide.md
reek-3.6.1 docs/style-guide.md
reek-3.6.0 docs/style-guide.md
reek-3.5.0 docs/style-guide.md
reek-3.4.1 docs/style-guide.md
reek-3.4.0 docs/style-guide.md