I find I often use delegate and many nil guards in my facades. Adding a default_value option to delegate would simplify this, but I am interested how others feel about it.
This is why I wanted to ask the group before making the pull request.
As for Rafael’s question – it is no different from writing the methods out, but either is delegate. I just found that many times where I would have used delegate I ended up writing out the individual methods only to add || = “”. So, I thought others might use it as well.
As for Matt’s questions:
(1) It’s not clear (to me) how this should interact with passing multiple attributes to delegate:
The way I wrote it all of the delegated methods passed would get the default values so: