Sha256: a6e3a930fc7919e03499c0c59070a63e2848dd57be8dc10e94ed6322642445aa

Contents?: true

Size: 169 Bytes

Versions: 2

Compression:

Stored size: 169 Bytes

Contents

module Kmkr
  class PrefixDate
    def initialize(format = '%d-%m-%Y')
      @format = format
    end

    def to_s
      Date.today.strftime(@format)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kmkr-0.0.2 lib/kmkr/prefix_date.rb
kmkr-0.0.1 lib/kmkr/prefix_date.rb