class Object
Public Class Methods
new(*args)
click to toggle source
# File lib/core_ext/time.rb, line 17 def self.new(*args) args.empty? ? now : real_new(*args) end
Also aliased as: real_new
now()
click to toggle source
# File lib/core_ext/date_time.rb, line 7 def now Time.now.send(:to_datetime) end
Also aliased as: real_now
today()
click to toggle source
# File lib/core_ext/date.rb, line 7 def today Time.now.send(:to_date) end