Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/datify.rb

Instance Method Summary collapse

Instance Method Details

#is_time?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/datify.rb', line 4

def is_time?
  Datify::Engine.new(self).valid?
end

#to_timeObject



8
9
10
# File 'lib/datify.rb', line 8

def to_time
  Datify::Engine.new(self).date
end