[Ruby On Rails] Get the variable type in ruby on rails

is_a()

addr = Array.new
addr.is_a?Array #returns true

No comments:

Post a Comment