# File lib/puppet/type/cron.rb, line 82 82: def alphacheck(value, ary) 83: tmp = value.downcase 84: 85: # If they specified a shortened version of the name, then see 86: # if we can lengthen it (e.g., mon => monday). 87: if tmp.length == 3 88: ary.each_with_index { |name, index| 89: if name =~ /#{tmp}/i 90: return index 91: end 92: } 93: else 94: return ary.index(tmp) if ary.include?(tmp) 95: end 96: 97: false 98: end