Sha256: 89317941c8bba5a51fb9840395bb1508d4ce5a8592a60d2a129e02a2d9a19398

Contents?: true

Size: 185 Bytes

Versions: 4

Compression:

Stored size: 185 Bytes

Contents

module Printfection
  module Transforms
    Integer = lambda { |v| v.to_i }
    Float   = lambda { |v| v.to_f }
    Date    = lambda { |v| v.nil? ? nil : DateTime.parse(v) }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
printfection-1.0.3 lib/printfection/transforms.rb
printfection-1.0.2 lib/printfection/transforms.rb
printfection-1.0.1 lib/printfection/transforms.rb
printfection-1.0.0 lib/printfection/transforms.rb