NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Moment of Ruby: An Argument for Nothing (aha.io)
matharmin 34 minutes ago [-]
It's an interesting trick, but for a setter method you really need to use `def cloaking=(value)` instead of overloading the same method. It would help to give a more realistic example for where this technique can be useful.
semiquaver 25 minutes ago [-]
Wow, I wrote Ruby for 15+ years and never saw this trick!
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 12:17:19 GMT+0000 (Coordinated Universal Time) with Vercel.