Sha256: 1ee41a77326612abc1e90d5ab88c7c6c7b92c74f7419abfd8748269ef1ef48e4

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

class Transcriber::Resource
  module Serialization
    class Date
      def self.serialize(value)
        begin
          ::Date.parse value
        rescue
          raise "value not serializable: #{{value: value}}"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transcriber-0.0.1 lib/transcriber/resource/serialization/date.rb