Skip to content

Commit

Permalink
Merge pull request #1772 from qpongratz/fix-broken-encapsulation-link…
Browse files Browse the repository at this point in the history
…-in-docs

fix broken example link in docs
  • Loading branch information
mvz committed Mar 12, 2024
2 parents 1f35c48 + b90d24b commit 274ce11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Instance-Variable-Assumption.md
Expand Up @@ -98,7 +98,7 @@ class Child < Parent
end
```

Directly accessing instance variables is considered a smell because it [breaks encapsulation](http://designisrefactoring.com/2015/03/29/organizing-data-self-encapsulation/) and makes it harder to reason about code.
Directly accessing instance variables is considered a smell because it [breaks encapsulation](https://www.designisrefactoring.com/2015/03/30/organizing-data-self-encapsulation/) and makes it harder to reason about code.

If you don't want to expose those methods as public API just make them private like this:

Expand Down

0 comments on commit 274ce11

Please sign in to comment.