Sha256: 6aa474de86b799c7e8ffae18e509b76d89bdd7e414d6ac9627b7dfbc451ff9e1
Contents?: true
Size: 517 Bytes
Versions: 5
Compression:
Stored size: 517 Bytes
Contents
require File.join(File.dirname(__FILE__),"utils") module Polling module Validate def self.value value case value when Array if value.size.eql? 1 value = value[0] if value.class == String value = Utils.convert value end elsif value.size > 1 if value[0].class == String value = value.map {|i| i.to_i} end end when String value = Utils.convert value end value end end end
Version data entries
5 entries across 5 versions & 1 rubygems