четверг, 3 октября 2013 г.

Ruby :: Classification

As you've probably guessed, Object#is_a? accepts a single parameter - a class. Object#is_a? has an alias, Object#kind_of?.

They're identical in every respect so you're free to pick whichever reads better in a given context.

Комментариев нет:

Отправить комментарий