3 ms·
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 d
by steveklabnik 16y ago
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.