Module: TimeTravel::TimeExtensions::ClassMethods
- Defined in:
- lib/time_travel/time_extensions.rb
Constant Summary collapse
- @@now =
nil
Instance Method Summary collapse
Instance Method Details
#mutable_now ⇒ Object
:nodoc:
29 30 31 |
# File 'lib/time_travel/time_extensions.rb', line 29 def mutable_now #:nodoc: @@now || immutable_now end |
#now=(value) ⇒ Object
25 26 27 |
# File 'lib/time_travel/time_extensions.rb', line 25 def now=(value) @@now = value.respond_to?(:parse_to_time) ? value.parse_to_time : value end |