Sha256: 8540b9ac995919b364643e2837e97abb1af1c6227717b1baf53e7e266b6c5020
Contents?: true
Size: 285 Bytes
Versions: 2
Compression:
Stored size: 285 Bytes
Contents
# frozen_string_literal: true module Helium class Console define_formatter_for Time do def render_inline blue object.strftime('%A, %d %b %Y, %H:%M:%S') end def render_compact blue object.strftime('%d/%m/%Y, %H:%M') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helium-console-0.1.13 | lib/helium/console/registry/time.rb |
helium-console-0.1.12 | lib/helium/console/registry/time.rb |