That’s a great example I didn’t think of. I usually still do that in two lines:
irb> model.save
=> true
irb> model.errors
=> []
But I’ll try to remember to use #tap
there. It’s just not top of mind for me. 🤷♀️
That’s a great example I didn’t think of. I usually still do that in two lines:
irb> model.save
=> true
irb> model.errors
=> []
But I’ll try to remember to use #tap
there. It’s just not top of mind for me. 🤷♀️