Sha256: 53fbef27a303c014c13ed176ecc78f1dee52528246891b3fffcbbc8babc47367
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
# coding: utf-8 # $Id: time.rb 120 2009-02-09 08:22:25Z yuyakato $ require "rubygems" require "kagemusha/time" p Time.now #=> now # Normal Style. musha = Kagemusha::Time.at(2007, 1, 1) musha.swap { p Time.now #=> 2007-01-01 00:00:00 } p Time.now #=> now # Block Style. Kagemusha::Time.at(2007, 1, 1) { p Time.now #=> 2007-01-01 00:00:00 } p Time.now #=> now
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagemusha-0.0.8 | examples/time.rb |