Methods

Files

Class/Module Index [+]

Quicksearch

Tins::TimeFreezer

Public Class Methods

freeze(time) click to toggle source
# File lib/tins/time_freezer.rb, line 6
def self.freeze(time)
  Time.dummy(time) do
    DateTime.dummy(time) do
      Date.dummy(time) do
        yield
      end
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.