Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 275 Bytes
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.