Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v3.0.9.rc2
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.275 kB
require 'date'
class Time
# Ruby 1.8-cvs and early 1.9 series define private Time#to_date
%w(to_date to_datetime).each do |method|
if private_instance_methods.include?(method) || private_instance_methods.include?(method.to_sym)
public method
end
end
end
Jump to Line
Something went wrong with that request. Please try again.