Method: String#is_time?
- Defined in:
- lib/unresponsys/helpers.rb
#is_time? ⇒ Boolean
21 22 23 24 |
# File 'lib/unresponsys/helpers.rb', line 21 def is_time? return false if /[[:alpha:]]/.match(self).present? !!Time.parse(self) rescue false end |