Sha256: 45d76899e421beba7ed1c7a39f472b26f1fbe310c0f1d5b510cc4fa858d5a8cc
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true module Milestoner module Commits module Enrichers # Enriches raw time as a Time instance. class Time def initialize key: @key = key end def call(commit) = ::Time.at commit.public_send(key).to_i private attr_reader :key end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milestoner-18.12.0 | lib/milestoner/commits/enrichers/time.rb |