Law Of Demeter Violator
user.name is for jerks who think patterns are cool. You and me, we know that
the Gang of Four were communists.
Add this line to your application’s Gemfile:
And then execute:
Or install it yourself as:
$ gem install law_of_demeter_violator
Finally, ask yourself why you installed this. Just have a long talk.
You have two options.
1) include the
LawOfDemeterViolator module in your class, at the end:
class BadIdea def meth1 end include end
Unfortunately, it has to be at the end of the class definition.
2) use the global
Is it tested?
Of course. I’m not a monster.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request