Why does Ruby use respond_to? instead of responds_to?

Matz prefers second person singular or third person plural:

“responds_to?” probably makes more
sense to English speakers than
“respond_to?”.

Maybe. But I’m Japanese. Ruby is not
English. It’s the basic naming rule
to avoid third person singular form in
the standard libraries.

  you = Human.new
  if you.respond_to?(:knock)
    ...
  end

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)