Sha256: 0416d36d89e484d03c1b9c409e4e0bccd3e50053a70421233dfab9a415dbccce

Contents?: true

Size: 184 Bytes

Versions: 7

Compression:

Stored size: 184 Bytes

Contents

module PrintReleaf
  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

7 entries across 7 versions & 1 rubygems

Version Path
printreleaf-1.5.0 lib/printreleaf/transforms.rb
printreleaf-1.3.2 lib/printreleaf/transforms.rb
printreleaf-1.3.1 lib/printreleaf/transforms.rb
printreleaf-1.3.0 lib/printreleaf/transforms.rb
printreleaf-1.0.3 lib/printreleaf/transforms.rb
printreleaf-1.0.2 lib/printreleaf/transforms.rb
printreleaf-1.0.1 lib/printreleaf/transforms.rb