Sha256: 6af5b689580466c3a06956fdf1415c47b5980a38562c1b41c4d5dab35979c00a
Contents?: true
Size: 293 Bytes
Versions: 4
Compression:
Stored size: 293 Bytes
Contents
require 'date' require 'time' class DateTime < Date def initialize(*args, &block) @time = Time.new(*args, &block) @time.methods.each do |method| singleton_class.define_method(method) do |*args, &block| @time.send(method, *args, &block) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems