Module: TimeCrisis::Support::ReadableInspect::DateTime

Defined in:
lib/time_crisis/support/readable_inspect.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



20
21
22
23
24
25
# File 'lib/time_crisis/support/readable_inspect.rb', line 20

def self.included(base)
  base.class_eval do
    alias_method :default_inspect, :inspect
    alias_method :inspect, :readable_inspect
  end
end

Instance Method Details

#readable_inspectObject



16
17
18
# File 'lib/time_crisis/support/readable_inspect.rb', line 16

def readable_inspect
  to_s(:rfc822)
end