def validate(value)
      raise Error, "#{value} is not an integer" if value.to_i.to_s != value

      value.to_i
    end
def validate(value)
      raise Error, "#{value} is not an integer" if value.to_i.to_s != value

      value.to_i
    end
@param [ String ] value

 @return [ Integer ]