lib/object.rb
# Return true if the object can be converted to a valid integer.
Return true if the object can be converted to a valid integer.
Return true if the object can be converted to a valid integer .
def valid_int?
    begin
      Integer(self)
      true
    rescue ArgumentError
      false
    end
  end
def valid_int? begin Integer ( self ) true rescue ArgumentError false end end
Return true if the object can be converted to a valid integer.
Return true if the object can be converted to a valid integer .