Sha256: d1381768c6ca0f082f406faab24f11537193ed698952aef815c1d5699c6b4e37
Contents?: true
Size: 289 Bytes
Versions: 11
Compression:
Stored size: 289 Bytes
Contents
require 'time' class Time def self.from_xommelier(value) return if value == nil case value when String Time.xmlschema(value) when Time value else raise Xommelier::TypeError.new(value, Time) end end def to_xommelier xmlschema end end
Version data entries
11 entries across 11 versions & 1 rubygems