Sha256: b3faf179401e989bff24c2b3304dc192bfe6bef81288b5686857c22466648481
Contents?: true
Size: 232 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
message-driver-0.4.0 | features/support/transforms.rb |