SyntaxFix
Write A Post
Hire A Developer
Questions
You probably want to use kind_of().
kind_of()
>> s = "something" => "something" >> s.kind_of?(Array) => false >> s = ["something", "else"] => ["something", "else"] >> s.kind_of?(Array) => true