Sha256: 660af4375a1a54722cd7d43519af56ec89bb519ef20ec524db5a88b1ebe3ab50

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

module Helium
  class Console
    define_formatter_for 'Date' do
      def render_inline
        blue object.strftime('%A, %d %b %Y')
      end

      def render_compact
        blue object.strftime('%d/%m/%Y')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helium-console-0.1.13 lib/helium/console/registry/date.rb