Sha256: 21b4e06e7f1c4ea42013821ca8d0404bc5271ea6a7986b1be01babd13c540195

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

# coding: utf-8
# $Id: time.rb 108 2009-02-09 06:04:39Z 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
nayutaya-kagemusha-0.0.9 examples/time.rb