Rails 3或Ruby是否有内置方法来检查变量是否为整数?
例如,
1.is_an_int #=> true "dadadad@asdasd.net".is_an_int #=> false?
ruby ruby-on-rails-3
ruby ×1
ruby-on-rails-3 ×1