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

You are correct:

    ruby-1.9.2-p0 > def something; "hey" end
     => nil 
    ruby-1.9.2-p0 > something
     => "hey" 
Adding the do makes it not work. def doesn't have a do.


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

Search: