Sha256: 25a2acc007f7c2c4c5d3c6a76fb04a55e0a0e14cfb14490d88ede614eb14ce86
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
# coding: utf-8 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 |
---|---|
nayutaya-kagemusha-0.1.0 | examples/time.rb |