module Tins::TimeFreezer
Public Class Methods
Source
# File lib/tins/xt/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
# File lib/tins/xt/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