Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/thetvdb_api/utility/date.rb
Class Method Summary collapse
Class Method Details
.coerce(value) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/thetvdb_api/utility/date.rb', line 2 def self.coerce(value) begin Date.parse(value) rescue => e nil end end |