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
real_new(*args)
Alias for: new
real_now()
Alias for: now
today() click to toggle source
# File lib/core_ext/date.rb, line 7
def today
  Time.now.send(:to_date)
end