Module: Tins::TimeDummy

Defined in:
lib/tins/time_dummy.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(modul) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/tins/time_dummy.rb', line 3

def self.included(modul)
  modul.module_eval do
    class << self
      alias really_new new
      remove_method :now rescue nil
      remove_method :new rescue nil
    end

    extend ClassMethods
  end
end