Sha256: ff0a3fc037336ca63aa3b05eed5d45d546c7af4621cdcd1bdaccea291b7deac5

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

require 'date'

module Pact
  module Generator
    # Time provides the time generator which will give the current time in the defined format
    class Time < Date
      def type
        'Time'
      end

      def default_format
        'HH:mm'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pact-support-1.21.1 lib/pact/generator/time.rb
pact-support-1.21.0 lib/pact/generator/time.rb