SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
def is_array(a) a.class == Array end
EDIT: The other answer is much better than mine.