Sha256: d1452398bfed4ea3d5dc3d9c258c65fb6fa0708566777742ea2d4ba30077b67d
Contents?: true
Size: 232 Bytes
Versions: 7
Compression:
Stored size: 232 Bytes
Contents
NUMBER = Transform(/^\d+|no$/) do |num| case num when "no" 0 else num.to_i end end STRING_OR_SYM = Transform(/^:?\w+$/) do |str| case str when /^:/ str.slice(1, str.length-1).to_sym else str end end
Version data entries
7 entries across 7 versions & 1 rubygems