Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 11 lines (9 sloc) 0.275 kb
2a1ae9e @jeremy Extract time fixes into separate extensions
jeremy authored
1 require 'date'
2
3 class Time
4 # Ruby 1.8-cvs and early 1.9 series define private Time#to_date
5 %w(to_date to_datetime).each do |method|
fe34d10 @jeremy JRuby doesn't have UnboundMethod#name
jeremy authored
6 if private_instance_methods.include?(method) || private_instance_methods.include?(method.to_sym)
2a1ae9e @jeremy Extract time fixes into separate extensions
jeremy authored
7 public method
8 end
9 end
10 end
Something went wrong with that request. Please try again.