Sha256: 7e943306a1239a2a1139e87217a452962fcdb0e1634e1ee0b09b3d6c9c80d6dd
Contents?: true
Size: 361 Bytes
Versions: 6
Compression:
Stored size: 361 Bytes
Contents
class Time unless method_defined?(:to_time) # 1.9 # To be able to keep Dates and Times interchangeable # on conversions. def to_time getlocal end # A method to keep Time, Date and DateTime instances interchangeable on conversions. # In this case, it simply returns +self+. #def to_time # self #end end end
Version data entries
6 entries across 6 versions & 1 rubygems