Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
kind_of « Reflection « Ruby
Ruby
Reflection
kind_of
1.
determine our object's class and its unique objectID and test its relationship to other classes.
2.
use Object's is_a? or kind_of? methods (they are synonyms)
3.
Return value based on parameter type