Module: TimeCrisis::Support::ReadableInspect::Date
- Defined in:
- lib/time_crisis/support/readable_inspect.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/time_crisis/support/readable_inspect.rb', line 7 def self.included(base) base.class_eval do alias_method :default_inspect, :inspect alias_method :inspect, :readable_inspect end end |
Instance Method Details
#readable_inspect ⇒ Object
3 4 5 |
# File 'lib/time_crisis/support/readable_inspect.rb', line 3 def readable_inspect strftime("%a, %d %b %Y") end |