Sha256: 44ecc795cad170b0417585509f0996442e8d707f18e3d3f9adab3f88d4453223
Contents?: true
Size: 335 Bytes
Versions: 2
Compression:
Stored size: 335 Bytes
Contents
module JDBC module Coercions def identity @identity ||= ->(value) { value } end module_function :identity def to_s @to_s ||= ->(value) { value.to_s } end module_function :to_s def to_time @to_time ||= ->(value) { Time.parse(value.to_s) } end module_function :to_time end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jdbc-0.1.1-java | lib/jdbc/coercions.rb |
jdbc-0.1.0-jruby | lib/jdbc/coercions.rb |