class String
Public Instance Methods
is_i?()
click to toggle source
Adds the ability to check if String
is an integer (both positive and negative values accepted)
# File lib/toolbox/integer.rb, line 6 def is_i? !self.match(/^[-+]?[0-9]+$/).nil? end