Sha256: 361005529d70c7ef592604a86be54b2c06ec7698fe763154753e18ce8dd8466d
Contents?: true
Size: 922 Bytes
Versions: 1
Compression:
Stored size: 922 Bytes
Contents
#==============================================================================# # $Id: date.rb 27 2007-08-15 14:35:31Z yuyakato $ #==============================================================================# require "kagemusha" require "date" #==============================================================================# class Kagemusha #:nodoc: module Date #:nodoc: def self.on(date_or_year, mon = 1, mday = 1) #:nodoc: date = case date_or_year when ::Date then date_or_year when ::Integer then ::Date.new(date_or_year, mon, mday) else raise(ArgumentError, "?") # FIXME: message end musha = Kagemusha.new(::Date) musha.defs(:today) { date } return musha end end end #==============================================================================# #==============================================================================#
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagemusha-0.0.1 | lib/kagemusha/date.rb |