I want to know which approach is more efficient in comparing two classes.
Approach 1:
a = \'123\' a.class.name == \'String\'
Approach