Sha256: af306000789da39c50ef29aac124c4333137d1f1886eb9b4faa727e302baec4c

Contents?: true

Size: 283 Bytes

Versions: 9

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"

module Rubysmith
  module Configuration
    # Adds current time to content.
    module Enhancers
      using Refinements::Structs

      CurrentTime = -> content, at: Time.now { content.merge(now: at) }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysmith-4.9.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.8.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.7.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.6.1 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.6.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.5.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.4.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.3.0 lib/rubysmith/configuration/enhancers/current_time.rb
rubysmith-4.2.0 lib/rubysmith/configuration/enhancers/current_time.rb