I often find myself doing lots of delegating.
In Ruby Science, it says:
Many delegate methods to the same object are an indicator that your object graph may not accurately reflect the real world relationships they represent.
and
If you find yourself writing lots of delegators, consider changing the consumer class to take a different object. For example, if you need to delegate lots of
User
methods toAccount
, it’s possible that the code referencingUser
should actually reference an instance ofAccount
instead.
I don't really understand this. What is an example of how this would look in practice?