Sha256: 1b9c8d7cf32b47acb223f70caca0016c6b8318df4b229e8480c9b8320d881550

Contents?: true

Size: 174 Bytes

Versions: 1

Compression:

Stored size: 174 Bytes

Contents

class Date
  def self.parse_safely(raw_date_time)
    begin
      self.parse raw_date_time
    rescue ArgumentError
      nil
    rescue TypeError
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chgk_rating-1.0.0.rc1 lib/ext/date.rb