Copy this bookmark:



description:


tags:



bookmark detail

Determining type of an object in ruby - Stack Overflow
Normally type checking is not done in Ruby, but instead objects are assessed based on their ability to respond to particular methods, commonly called "Duck typing". In other words, if it responds to the methods you want, there's no reason to be particular about the type.
ruby  basics  project_blackcat 
5 weeks ago by cdmorris
view in context