Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v3.0.7.rc1
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.