Sha256: e6caf4a79eef536475e079eb4e316611c60acddfae856c2105de60ede39f1856

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

module Polling
  module Confirm
    module_function
    def check_value(value)
      value = value.to_i
      raise TypeError, "Please set as a multiple of 60" if (value % 60 != 0) && value > 60
      return value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polling-0.0.2 lib/polling/confirm.rb