Passing a full object as arguments VS minimal information?

Hi,

Is it a good idea to pass a full object as an argument, or is it better
to only give minimum info to the method?

I would say ‘pass the full object’ so you’re ready to implement more
functionality in your method without reviewing every call you have
around…

On Apr 1, 8:39 am, Fernando P. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs