public
Description: Code smell detector for Ruby
Home | Edit | New

Attribute

A class that publishes a getter or setter for an instance variable invites client classes to become too intimate with its inner workings, and in particular with its representation of state.

Current Support in Reek

Currently this detector raises a warning for every attr, attr_reader, attr_writer and attr_accessor — including those that are private.

Configuration

Attribute supports only the Basic Smell Options. The file config/defaults.reek (shipped with the Reek gem) lists the default configuration settings for this smell detector.

Last edited by kevinrutherford, Tue Oct 06 07:18:26 -0700 2009
Home | Edit | New
Versions: