Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A lot of Ruby idiomatic methods will return either a value or nil, which is falsey, so things like:

  x = meep
  if x
    # do stuff
  end
will run as most might mean.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: