Рубин INT

1.is_a? Integer
=> true
"dadadad@asdasd.net".is_a? Integer
=> false
nil.is_a? Integer
=> false
Hungry Hedgehog